Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: full snapshot every 10 minutes #847

Merged
merged 3 commits into from
Oct 23, 2023
Merged

fix: full snapshot every 10 minutes #847

merged 3 commits into from
Oct 23, 2023

Conversation

pauldambra
Copy link
Member

@pauldambra pauldambra commented Oct 23, 2023

We don't configure regular checkouts on recordings. That is a common perf improvement for "long recordings"

Let's try auto checkout every 30 minutes.

Tested by setting a lower value and seeing full snapshots at expected interval (and checking I could play back the recordings)

@github-actions
Copy link

github-actions bot commented Oct 23, 2023

Size Change: +84 B (0%)

Total Size: 725 kB

Filename Size Change
dist/array.full.js 177 kB +21 B (0%)
dist/array.js 118 kB +21 B (0%)
dist/es.js 118 kB +21 B (0%)
dist/module.js 118 kB +21 B (0%)
ℹ️ View Unchanged
Filename Size
dist/recorder-v2.js 95 kB
dist/recorder.js 58.3 kB
dist/surveys.js 39.6 kB

compressed-size-action

@@ -22,6 +22,7 @@ import { logger, loadScript, _timestamp, window } from '../utils'
const BASE_ENDPOINT = '/s/'

export const RECORDING_IDLE_ACTIVITY_TIMEOUT_MS = 5 * 60 * 1000 // 5 minutes
export const THIRTY_MINUTES_IN_MS = 30 * 60 * 1000
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This makes total sense... I even wonder if we shouldn't make it slightly lower, like say 10 mins?

@pauldambra pauldambra added the bump patch Bump patch version when this PR gets merged label Oct 23, 2023
@pauldambra pauldambra changed the title fix: full snapshot every 30 minutes fix: full snapshot every 10 minutes Oct 23, 2023
@pauldambra pauldambra merged commit db083ab into master Oct 23, 2023
13 checks passed
@pauldambra pauldambra deleted the feat/snapshot-every branch October 23, 2023 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump patch Bump patch version when this PR gets merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants