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 db3f6e3 commit 8b24f2dCopy full SHA for 8b24f2d
packages/electric-db-collection/src/electric.ts
@@ -439,22 +439,15 @@ async function onLoadMore<T extends Row<unknown>>(
439
options: OnLoadMoreOptions
440
) {
441
const { begin, write, commit } = syncParams
442
-
443
- // TODO: optimize this by keeping track of which snapshot have been loaded already
444
- // and only load this one if it's not a subset of the ones that have been loaded already
445
446
const snapshotParams = compileSQL<T>(options)
447
448
const snapshot = await stream.requestSnapshot(snapshotParams)
449
450
begin()
451
452
snapshot.data.forEach((row) => {
453
write({
454
type: `insert`,
455
value: row.value,
456
})
457
458
459
commit()
460
}
0 commit comments