https://slatedb.io logo
is there a way to do a blocking call
# general
a
is there a way to do a blocking call that blocks writes and persists all the memtables such that there's no data living only in the wal? that seems useful for shutdowns/handoffs in a performance-oriented setup with the WAL living on a persistent disk but the rest of the stuff living in object storage, where WAL commits are fast and frequent but sst uploads are cheap and infrequent
c
Yes! Check
flush_with_options
. If memtable is set in the flush options, it'll guarantee all data written so far has been flushed to memtables (i.e. is not just in WAL)
a
🤘 thank you!
c
Sorry if I already asked this.. but saw you on here a bit recently. What are you using SlateDB for? 🙂
I'm trying to add more "adopters" to our README.md
a
right now just prototyping! but if all goes well, it'd be for a service similar to restate.dev -- the guts of a durable workflow / background job system
we're using temporal today but it is expeeeensive and has lots of annoying limitations we've had to paper over with yet more other databases
slatedb also just seems ... right
so thats exciting
c
Love it. Durable execution is one of the areas where I think SlateDB is a natural fit
LMK if you hit any snags