You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The performance cost of forcibly generated snapshot ids is severe.
Copying snapshots from one lix to another or even sending it over the network when syncing could entail hundreds of thousands of snapshots. Even though the snapshot.id has already been computed, the receiver must re-compute the snapshot id.
constlix1=awaitopenLix()// potentially 100.000's snapshotsconstsnapshots1=awaitlix.db.selectFrom("snapshot").selectAll().execute();constlix2=awaitopenLix({});awaitlix2.db.insertInto("snapshot")// need to re-compute the id for all snapshots.values(snapshots1.map((c)=>({content: c.content}))).execute();awaitapplyChanges({lix: lix2,changes: changes1});
Context
The snapshot id column being forcibly generated leads to:
Proposal
Make the sha256 hash the default for
snapshot.id
but lift the restriction on snapshot ids being the hash of the content.The text was updated successfully, but these errors were encountered: