Commit 36d4cb9
committed
feat: implement chunked storage for IndexedDB to optimize memory usage
- Replace single-file storage with chunk-based architecture
- Add FileMetadata store for tracking file information
- Implement DataChunks store with composite key [filename, chunkIndex]
- Update write operations to append only to relevant chunks
- Maintain backward compatibility with existing API
- Improve performance for 500Hz continuous data streams
- Reduce memory usage from O(n) to O(1) for append operations
BREAKING CHANGE: Database version upgraded to 3. Existing data will be migrated automatically.1 parent 0eac4b7 commit 36d4cb9
2 files changed
Lines changed: 290 additions & 104 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1859 | 1859 | | |
1860 | 1860 | | |
1861 | 1861 | | |
1862 | | - | |
| 1862 | + | |
1863 | 1863 | | |
1864 | 1864 | | |
1865 | 1865 | | |
| |||
0 commit comments