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 option to specify data update policy on view queries #13

Closed
ecton opened this issue Mar 27, 2021 · 0 comments
Closed

Add option to specify data update policy on view queries #13

ecton opened this issue Mar 27, 2021 · 0 comments

Comments

@ecton
Copy link
Member

ecton commented Mar 27, 2021

The default behavior is to ensure the view is up-to-date before returning any data.

Keep this behavior by default, but add the ability to:

  • Return stale data (don't wait for the view to update, pull whatever it can immediately with as little delay as possible)
  • Same as above, except kick off a view update job to run in the background.

This allows ultimate flexibility: If you want eventually-consistent data accesss, use "update_after". If you know another process is updating the view regularly, you can just request stale data always allowing the other process to control the "caching".

@ecton ecton closed this as completed in 5bd8137 Mar 28, 2021
@ecton ecton added this to the Map/Reduce Views v1 milestone Mar 28, 2021
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