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

feat(Trie): Working prefix match with holes #1654

Merged
merged 3 commits into from
Jan 28, 2021
Merged

feat(Trie): Working prefix match with holes #1654

merged 3 commits into from
Jan 28, 2021

Conversation

manishrjain
Copy link
Contributor

@manishrjain manishrjain commented Jan 28, 2021

This PR adds a way to match a prefix, while ignoring certain portions of the key (aka holes).

This is useful to implement multi-tenancy in Dgraph, where namespace is stored on the byte index 3-11 in the prefix key, and those bytes need to be ignored to subscribe to updates across all the namespaces.


This change is Reviewable

@manishrjain manishrjain merged commit 1bebc26 into master Jan 28, 2021
@manishrjain manishrjain deleted the mrjn/trie branch January 28, 2021 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant