Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Idea: AtlasDBQueryFilter (probably in Cassandra 3) #176

Open
j-baker opened this issue Mar 28, 2020 · 0 comments
Open

Idea: AtlasDBQueryFilter (probably in Cassandra 3) #176

j-baker opened this issue Mar 28, 2020 · 0 comments

Comments

@j-baker
Copy link
Contributor

j-baker commented Mar 28, 2020

Most relevant classes: CollationController, SSTableNamesIterator.

At present, AtlasDB uses the SliceQueryFilter for its queries. This has three downsides.

  1. In multicolumn range scans, we must read all historic versions.
  2. Cassandra has an optimization for the names query filter - it says - sort your SSTables by max timestamp descending (provided that they do not overlap) - if you see the relevant column in the latest SSTable, you can skip looking at the others.
  3. We can only select one column per RPC - if an internal use case has 5 columns, we must issue 5 RPCs to Cassandra in order to load these.

It would be relatively straightforward for us to define an AtlasDBQueryFilter which specializes Cassandra's behaviour for AtlasDB tables specifically - locating the latest write for the cell only instead of having to look at all SSTables and merge.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant