by endisneigh · 3y ago · 0 comments
Ideally someone could implement the firestore or dynamodb api on top.
https://github.com/losfair/mvsqlite
Is basically distributed SQLite backed by FDB. I’ve been scared to use it since I don’t know rust and can’t attest to if mvcc had been implemented correctly.
In using this I actually realized how coupled the storage engine is to the storage system and how few open source projects make the storage engine easily swap-able.
mvsqlite seems to improve the transaction size [3], which is nice. Does it also improve the key/value limitations?
> Transaction size cannot exceed 10,000,000 bytes of affected data. [---] Keys cannot exceed 10,000 bytes in size. Values cannot exceed 100,000 bytes in size.
[1] https://apple.github.io/foundationdb/known-limitations.html
mvsqlite fixes the transaction size through its own transaction layer, from my understanding; I don't know how that would impact performance. The 10kb/100Kb key value limit is probably not fixable in any way, but it's not really a huge problem as a user in practice for FDB because you can just shard the value across two keys in a consistent transaction and it's fine. 10 kilobyte keys have pretty much never ever been an issue in my cases either; you can typically just do something like hash a really big key before insert and use that.
The record layer https://github.com/FoundationDB/fdb-record-layer which allows to store protobuf, and define the primary keys and index directly on those proto fields is truly amazing:
https://github.com/FoundationDB/fdb-record-layer/blob/main/d...