Getting partition min/max timestamp

2018-01-13 Thread Arthur Kushka
Hi folks, Currently, I working on custom CQL operator that should return the max timestamp for some partition. I don't think that scanning of partition for that kind of data is a nice idea. Instead of it, I thinking about adding a metadata to the partition. I want to store minTimestamp and maxTim

Re: Getting partition min/max timestamp

2018-01-13 Thread Jonathan Haddad
Do you need to support TTLs? That might be a bit of an issue. On Sat, Jan 13, 2018 at 12:41 PM Arthur Kushka wrote: > Hi folks, > > Currently, I working on custom CQL operator that should return the max > timestamp for some partition. > > I don't think that scanning of partition for that kind of

Re: Getting partition min/max timestamp

2018-01-13 Thread Jeff Jirsa
You’re right it’s not stored in metadata now. Adding this to metadata isn’t hard, it’s just hard to do it right where it’s useful to people with other data models (besides yours) so it can make it upstream (if that’s your goal). In particular the worst possible case is a table with no clusterin