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

iddb: rich query with cache invalidation #14

Open
dckc opened this issue Jun 14, 2020 · 0 comments
Open

iddb: rich query with cache invalidation #14

dckc opened this issue Jun 14, 2020 · 0 comments

Comments

@dckc
Copy link

dckc commented Jun 14, 2020

idea: add a select method that takes a set of tables paired with key ranges for those tables and a "callback" channel. Return matching rows; then, when the DB changes such that this query might return different results, fire the callback.

problem: execution of the callback is charged to the deployer that made the DB change, and it cost an arbitrary amount.

another idea: keep a state generation counter. return it with select results. support if-modified-since style

@dckc dckc transferred this issue from rchain-community/rvote Oct 9, 2020
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