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

Use Storage-Attached Indexing (SAI) as alternative eventsByTag implementation #920

Open
patriknw opened this issue Jul 4, 2021 · 2 comments
Labels
1 - triaged Tickets that are safe to pick up for contributing in terms of likeliness of being accepted help wanted t:events-by-tag

Comments

@patriknw
Copy link
Member

patriknw commented Jul 4, 2021

The new Storage-Attached Indexing (SAI) looks like a strong candidate for eventsByTagQuery, (eventually) replacing our custom tag_views table.

Resources:

Note that SAI is not available in OSS Apache Cassandra yet, but according to CEP-7 the intention is to include it in Apache Cassandra.
It is included in DataStax Astra and DataStax Enterprise.

@patriknw patriknw added help wanted 1 - triaged Tickets that are safe to pick up for contributing in terms of likeliness of being accepted t:events-by-tag labels Jul 4, 2021
@patriknw
Copy link
Member Author

patriknw commented Jul 4, 2021

@chbatey Do you see any obvious reason why SAI wouldn't be a good fit for this?

@patriknw
Copy link
Member Author

patriknw commented Jul 4, 2021

I guess we would define two indexes. One on the tags and another on the offset (timestamp). Looks like query with two AND clauses could work: https://docs.datastax.com/en/storage-attached-index/6.8/sai/saiFaqs.html#saiFaqs__saiAndQueriesFaq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1 - triaged Tickets that are safe to pick up for contributing in terms of likeliness of being accepted help wanted t:events-by-tag
Projects
None yet
Development

No branches or pull requests

1 participant