https://slatedb.io logo
Potentially higher latency on durability
# general
c
Potentially higher latency on durability (if you're doing await_durable=true), and you'll need to manually control your own db.flush() calls (vs. relying on flush_interval, which is WAL-only)
p
Also one important caveat, on crash, you can end up with a flushed memtable that logically came after a previous memtable that was not flushed
I would like to not use the wal in my case but that prevents me from doing so
This one
c
> Also one important caveat, on crash, you can end up with a flushed memtable that logically came after a previous memtable that was not flushed šŸ¤” I don't think this is possible. Memtables are flushed in-order
I meant batch*
With two batches not ending up in the same memtable but that "depends" on the order for consistency
Kind of a tricky race TBH
c
Yes, but it's guaranteed that if write2 successfully is written to a memtable on object storage, write1 will already be successful if it was written before in wall-clock time. Your example case is patholigical in that you're writing out of order in your process.
p
Yeah indeed
What I don't really like is that I feel I am paying a huge price bandwidth wise just for this corner case šŸ˜›
c
😬
šŸ¤” open to suggestions haha
p
I don't think there's much that can be done
There's going to be durability tradeoffs
c
same
p
Say with a lightweight WAL
Hmm if I serialize the WriteBatch calls on my end, would they get flushed in order slatedb side?
c
Yes