https://slatedb.io logo
On a side note, it would be pretty cool
# general
p
On a side note, it would be pretty cool to be able to open a checkpoint with a writer, without a clone
r
what's the use case here? You'd either want to restore the original db to the checkpoint, or create a new db that's forked. It seems quite dangerous to start writing new data if the reads are served from a checkpoint
p
I think it's more of an UX improvement, creating a checkpoint, then creating a clone and keeping track of everything is more involved than just creating a checkpoint and writing to it
c
I suspect we're just mixing checkpoint and clone and making it really confusing
IIUC, what you're asking pierre is to have something like:
Db::from(object_store, checkpoint_id)
and have it create a clone and return a
Db
pointing to it all in one go
p
Yes exactly
c
Feels like something Codex can do for us
p
And deleting a fork should take care of cleaning up all the stuff
It's probably not trivial to do somewhat atomically if that's ever required
I guess as long as delete can be run idempotently to actually clear out the remaining stuff on previous failure that's fine
Sorry if I'm not clear, it's very late here lol