Open enspandi opened 1 year ago
@dgeb I think the line here is missing to add the object to the _delta
state, similar to what the addInverseRelationshipsSync
above does:
this._delta.inverseRelationships[ri] = rels;
I patched the SimpleRecordTransformBuffer
for now and it seems to work.
We are using
as otherwise the performance of indexeddb bulk operations is very very slow.
Unfortunately, with the latest version, we see that the store for keeping track of rels is not touched at all when removing a record.
Example:
After some digging, I think the
AsyncCacheIntegrityProcessor
processor creates the transforms that clean up the__inverseRels__
store withuseBuffer: false
.With
useBuffer: true
, it seems to be the job ofSyncCacheIntegrityProcessor
, but somehow it fails to return the changeset to remove the inverse rels @Versions