question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Separate FullSnapshot to smaller chunks

See original GitHub issue

Thank you for make rrweb better day by day.

Based on the document, FullSnapshot record will be increase the size bigger and bigger.

@Yuyz0112 @here is there any way to separate FullSnapshot into small chunks?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
Yuyz0112commented, Apr 16, 2021

@phuong

You can stringify the full snapshot JSON.stringify(snapshot) and split the string into multiple chunks

function chunkSubstr(str, size) {
  const numChunks = Math.ceil(str.length / size)
  const chunks = new Array(numChunks)

  for (let i = 0, o = 0; i < numChunks; ++i, o += size) {
    chunks[i] = str.substr(o, size)
  }

  return chunks
}
0reactions
no-1necommented, Apr 16, 2021
Read more comments on GitHub >

github_iconTop Results From Across the Web

BCP File splitting (Snapshot) - MSDN - Microsoft
We can split the table into many parts and replicate them separately, after that, you can create a view to show the full...
Read more >
Is it possible to split the backup of large data into smaller parts?
Snapshots are points in time. When you make a backup, a new snapshot is created - snapshots are never modified. So no, the...
Read more >
Best practices for persistent disk snapshots - Google Cloud
If you do create snapshots of your boot disks, store swap partitions, pagefiles, cache files, and non-critical logs on a separate persistent disk....
Read more >
How can I free up the space consumed by snapshots?
Go to Snapshot Replication > Snapshots. · Select a shared folder and click Snapshot > Calculate Size. · Select a time range no...
Read more >
How to Build Sparse EBS Volumes for Fun and Easy ...
In some cases, you can reduce initialization time by trimming volumes to discard unused blocks prior to snapshotting.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found