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

CouchDB "stale" parameter has been deprecated for view functions #12064

Open
amaltaro opened this issue Aug 5, 2024 · 0 comments
Open

CouchDB "stale" parameter has been deprecated for view functions #12064

amaltaro opened this issue Aug 5, 2024 · 0 comments
Labels
CouchDB New Feature Technical Debt Used to track issues that address technical needs internal to WM team

Comments

@amaltaro
Copy link
Contributor

amaltaro commented Aug 5, 2024

Impact of the new feature
WM in general

Is your feature request related to a problem? Please describe.
As documented in this view API:
https://docs.couchdb.org/en/stable/api/ddoc/views.html#db-design-design-doc-view-view-name

the stale option has been deprecated and it should be replaced by stable and update.

The default behavior of CouchDB is stable=false&update=true, where the documentation says:

  • return results from any shards (stable or not)
  • update results/view before returning data to the client

Describe the solution you'd like
Replace CouchDB view use of the stale option according to:

  • ok: returns data that might be stale. To be replaced by stable=true&update=false
  • update_after: returns data from the view and then trigger view update. To be replaced by stable=true&update=lazy

and default behavior will be stable=false&update=true.

Describe alternatives you've considered
None

Additional context
None

@amaltaro amaltaro added New Feature CouchDB Technical Debt Used to track issues that address technical needs internal to WM team labels Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CouchDB New Feature Technical Debt Used to track issues that address technical needs internal to WM team
Projects
Status: ToDo
Development

No branches or pull requests

1 participant