clarisma / geodesk

Fast and storage-efficient spatial database engine for OpenStreetMap data
https://docs.geodesk.com/java
Apache License 2.0
137 stars 4 forks source link

`Store.syncSegments()` must sync root segment *last* #51

Open clarisma opened 2 years ago

clarisma commented 2 years ago

Important at the end of a transaction:

clarisma commented 2 years ago

Must write index last, not just root segment.

clarisma commented 1 year ago

Could establish explicit write order for blocks. Maybe: markSequential(long pos) with auto-increment count. Blocks are written in count order. Blocks with count 0 can be written in arbitrary order.