We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 347a3c6 commit 5a024b5Copy full SHA for 5a024b5
packages/electric-db-collection/src/electric.ts
@@ -517,22 +517,15 @@ async function onLoadMore<T extends Row<unknown>>(
517
options: OnLoadMoreOptions
518
) {
519
const { begin, write, commit } = syncParams
520
-
521
- // TODO: optimize this by keeping track of which snapshot have been loaded already
522
- // and only load this one if it's not a subset of the ones that have been loaded already
523
524
const snapshotParams = compileSQL<T>(options)
525
526
const snapshot = await stream.requestSnapshot(snapshotParams)
527
528
begin()
529
530
snapshot.data.forEach((row) => {
531
write({
532
type: `insert`,
533
value: row.value,
534
})
535
536
537
commit()
538
}
0 commit comments