https://slatedb.io logo
p
message has been deleted
c
Haha ya I like this post. The second section on vacuum reminded me a lot of our GC issues
p
Arenโ€™t paradedb basically building tantivy on top of a lsm tree now?
Would be fun if tantivy on top of slatedb was easily achievable by forking this
c
IIRC they use tantivy inside their PG extension
p
Yes
But what I infer is that itโ€™s now tantivy > lsm tree backed by Postgres inside pgrx
c
haha yea I think you're right
Swapping lsm with slatedb could be interseting ... quickwit in postgres ๐Ÿ˜†
cc @Stu Hood (at Parade).. I'm sure he has plenty to say on this subject ๐Ÿ˜„
s
๐Ÿ‘‹
yea, search and databases have a strange sort of independent evolution of LSM trees... the search/analytics case usually uses deletion vectors rather than tombstones, but.
there are some portions of the search data structures that are much more amenable to literally being an LSM, like the term dictionary.
c
curious about the tombstone v. deletion vectors.. why is that? Is it so they can more easily delete many entries (via bit mask) without needing range deletes?
s
the posting lists in a search index are indexed by offset ("doc id") rather than primary key, similar to an OLAP format like parquet
so everything is predicated on fast offset-based access
c
ahhh gotcha
s
the term dictionary isn't, so it's a better fit for an LSM
c
wanders back to designing data intensive apps chapter rewrite :P
p
@Stu Hood I wonder why paradedb didnโ€™t take an approach similar to quickwit
s
afaik, we did: but rather than atop object storage, we operate atop Postgres's block storage
c
Now we need a PG block storage implementation using SlateDB ๐Ÿ˜ˆ
IIRC, Neon had to fork in order to do that
Not sure if their contribs made it back in
s
lots of folks are still very comfortable with the latency, performance, and scaling characteristics they get from a traditional OLTP database, without breaking through a few TB of data
yea, Neon has some neat stuff.
i think that Slate has an opportunity to be a great choice as a metadata store for some lakehouse open format
...but maybe that would mean single writer (process) for now...? haven't been keeping up there
c
> but maybe that would mean single writer (process) for now. Yea, we're still single writer.
I have this dream of using Quickwit's chitchat library to make a cluster of SlateDB instances
Since SlateDB uses the object store to handle fencing, we can be very loose about who the leader is
Worst case, we don't get data corruption, just a pause while the cluster metadata circulates
This would enable a single-writer per-partition
If we wanted to support true multi-writer in a single DB, we'd have to revisit the WAL protocol. Not impossible, but more invasive for sure.
I was pretty clear from the beginning that we were building for single writer multi-reader, so it's what we've focused on thus far.
s
yea, makes sense.