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 query cache to ServerDataSource #106

Open
uap-universe opened this issue Oct 27, 2022 · 0 comments
Open

Add query cache to ServerDataSource #106

uap-universe opened this issue Oct 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@uap-universe
Copy link
Collaborator

It looks like the ServerDataSource could use a cache to remember the last query parameters s.t. subsequent calls to

  • getAll()
  • getElements()
  • getFilteredAndSorted()

can return the last result without issuing a new request. On the other hand, there needs to be a way to invalidate this "cache", if you want to obtain fresh data from the server without changing the filter, page, or sorting.

I would override the refresh() method for this. This way you get new data from the server

  • every time the query changes (changing the page or the filter)
  • on explicit calls of refresh()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant