https://slatedb.io logo
<@1154560747330867221> finally read this : https:...
# general
c
@almog finally read this : https://s2.dev/blog/timestamping Looks like the arrived to the solution you did
a
nice! the folk at S2 are clearly doing some really great stuff -- glad they came to a similar conclusion. I think doing anything else in a log-based system (including something like slate) is just a can of worms
c
yea
a
it also makes things like "find me the offset for this time" a solvable problem, which is often how many real world systems that need to reprocess data work
though it may be a bit idealistic if you have frequently out of order data (i.e. IOT use cases). Then you probably need a secondary index on your event-timestamp
c
IOT is so interseting.. it's a totally different world
I don't know a ton about it...
a
Yeah, it's an interesting use case for sure. You're kind of at the whim of a bunch of instability (network connectivity, latencies, etc...). Honestly, in many IOT use cases you can just use the timestamp as the primary key, so you get that secondary index "for free"
do we have a custom byte comparator for SlateDB? I feel like that'd be really helpful if you need to range scan things that aren't always sorted in the standard byte sort order
I'd love to take that on (i've been itching to write some nice slate code) if we don't 😇
c
There's a request for this and a draft pr that needs help
one sec
It's somewhere around there
a
> I believe a better approach is to introduce a Comparator rather than simply adding ascending/descending order options. The former approach offers greater versatility. yup looks like that comment was added 🤩
c
It's all yours! 😄
a
haha fun! I think this comment from you is what I was thinking: > RocksDB does not allow custom comparators for iterators. It does allow comparators to be defined for the entire DB/column family.
I'll create a ticket for it
c
Yea I think that approach makes sense and is a little safer
Otherwise it gets funky between compaction, scans, etc
c
Looks good!
Go for it
a
😭 looks like crossbeam's skiplist map doesn't support custom comparators... that's a pain. I'll see if there's other options but we may need to contribute that back to crossbeam
c
K..
I suppose we could look at other skiplist impls too
a
yeah, ChatGPT didn't find any popular ones in rust (it may be dated) -- sad news for the rust ecosystem but not alltogether shocking. I'll do some googling
c
feb 24 😦
apr24 is the last in his pr
a
yeah, i'll upvote it for now and comment -- maybe having the might of slatedb behind it will be helpful
we are a mighty rust project 😤
c
I'm pretty stoked. Things really seem to be taking off. Lots of people showing up and asking questions now
a
Agreed, I really hope the new project we're working on in responsive 🤫 is going to kick off. It'll have a pretty neat slateDB use case
more excuses to push slate in a production setting the better
c
exactly
Reading over Apurva's doc right now 😄