williamdclt
05/15/2023, 11:33 AMvroldanbet
05/15/2023, 11:36 AMDatastore implementation that allows us to expose the paginated APIs. The 1.21 release includes a new implementation of ReadRelationships that uses pagination under the hood, which means that it only reads as many tuples as the stream requests (roughly - it still over-reads, but nothing like before).
The paginated versions of Lookup APIs is WIP and may land in 1.22williamdclt
05/15/2023, 11:38 AMoptional_limit?vroldanbet
05/15/2023, 11:41 AMwilliamdclt
05/15/2023, 11:46 AMwilliamdclt
05/15/2023, 11:46 AMvroldanbet
05/15/2023, 11:48 AMdguhr84
05/15/2023, 11:51 AMvroldanbet
05/15/2023, 11:52 AMvroldanbet
05/15/2023, 11:53 AMwilliamdclt
05/15/2023, 11:57 AMlimit property to come with an offset property.
I'd expect cursor and limit to be 2 unrelated concepts.
I don't really understand ATM what optional_cursor is for: what can I use it for?vroldanbet
05/15/2023, 12:01 PMLookupResources , you'd be saying something like "fetch the next X elements (i.e. limit) starting from this last known result (i.e. cursor)". It's optional because it has to be retrofitted into an API that didn't have it before, but also because on the first call you will not have a cursordguhr84
05/15/2023, 12:01 PMwilliamdclt
05/15/2023, 12:03 PMvroldanbet
05/15/2023, 12:04 PMSpiceDB repowilliamdclt
05/15/2023, 12:04 PMvroldanbet
05/15/2023, 12:05 PMwilliamdclt
05/15/2023, 12:05 PMwilliamdclt
05/15/2023, 12:05 PMvroldanbet
05/15/2023, 12:06 PMvroldanbet
05/15/2023, 12:07 PMmain. That aligns with what you see in github.com/authzed/spicedb - you are welcomed with main - but that's not necessarily what users expect from it: you would like to see the actual latest released version, not main of the APIwilliamdclt
05/15/2023, 12:13 PMvroldanbet
05/15/2023, 12:14 PMvroldanbet
05/15/2023, 12:16 PMvroldanbet
05/15/2023, 12:16 PMDeleteRelationship with limits, so you can delete in batches