appy-one / acebase

A fast, low memory, transactional, index & query enabled NoSQL database engine and server for node.js and browser with realtime data change notifications
MIT License
491 stars 27 forks source link

Failed to add to transaction log: Cannot store arrays with missing entries #59

Closed appy-one closed 2 years ago

appy-one commented 2 years ago

When the value of an array is updated with transaction logging switched on, the error "Failed to add to transaction log: Cannot store arrays with missing entries" will be thrown. This is because AceBase does not store sparse arrays, and updates to array values (being written to the transaction log) are always sparse. To fix this, those mutations in the transaction log will have to be either stored as an object or string.