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

Add index version 4 for distinct records with identical url & date #78

Merged
merged 2 commits into from
Mar 10, 2020

Conversation

ato
Copy link
Member

@ato ato commented Feb 17, 2020

Gated behind a feature flag as the version 3 to 4 upgrade process has not been implemented yet. To try the index format use command-line flag --index-version 4.

Warning: Using this on a version 3 index will only work partially. Queries will probably work but version 3 records cannot be deleted and updating them will create duplicates.

There may be a better way to encode the v4 keys (suggestions?). It's made awkward by the fact the urlkey field in v0 keys is't terminated we rely on the timestamp always being a fixed 8 bytes to calculate the length of it.

The reason I make the v4 keys a simple extension of the v0 keys is so that querying should work correctly for indexes with mixed record versions. This gives us a pathway to incremental upgrading without extensive downtime.

See additional discussion in #77

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

Successfully merging this pull request may close these issues.

1 participant