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

Problem: impossible to know the order of key insertion #195

Open
yrashk opened this issue Mar 21, 2017 · 0 comments
Open

Problem: impossible to know the order of key insertion #195

yrashk opened this issue Mar 21, 2017 · 0 comments

Comments

@yrashk
Copy link
Contributor

yrashk commented Mar 21, 2017

There are some cases when knowing the order of key insertion would be beneficial.

For example, replication that can be started and stopped at any time. The replica would only have to provide the last seen key and the master can provide the immediately following keys.

Proposed solution 1: unconditionally journal keys (HLC key) in a separate database in the same database environment and provide a set of instructions to navigate these. Downside: complexity and unconditionality (can't opt out).

Proposed solution 2: add ASSOC/JOURNAL instruction that will journal the associate the key value pair and journal the key. Downsides: leaks the journal to the namespace, makes it impossible to enforce this across the entire database, meaning at least the replication case won't benefit from it.

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

No branches or pull requests

1 participant