scylladb / scylla-code-samples

Code samples for working with ScyllaDB
Apache License 2.0
237 stars 130 forks source link

Range defined in the query should be open from one side. #181

Closed rtatishvili closed 1 month ago

rtatishvili commented 2 years ago

Shouldn't the query contain the range open from only one side, in other words, if >= is the lower bound, then upper bound should be strict inequality:< ?

In the vastness of the token range this is an edge case, but will probably catch someday someone.

https://github.com/scylladb/scylla-code-samples/blob/737432904a7a370544e01289758d4449b101a0d4/efficient_full_table_scan_example_code/efficient_full_table_scan.go#L21

DanielHe4rt commented 1 month ago

Maybe this article can help you to understand a little bit better, @rtatishvili.

Efficient Full Table scans with ScyllaDB