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

make query_objects faster #12

Open
jeanetteclark opened this issue Nov 9, 2023 · 0 comments
Open

make query_objects faster #12

jeanetteclark opened this issue Nov 9, 2023 · 0 comments

Comments

@jeanetteclark
Copy link
Collaborator

jeanetteclark commented Nov 9, 2023

I had the idea on a call that there is a way we can make query_objects much faster by keeping parts of the cache that are still relevant. Below are some changes that would need to be made

  • add dateModified to the fields returned by the query function
  • if a cache is found, filter to keep all objects with a dateModified older than the datetime at runtime
  • query for objects only with a dateModified more recent than the datetime at runtime
  • save the cache
  • if no cache is found, then make sure the datetime you are querying against is very far in the past so that you get all of the objects
  • remove the cache_tolerance parameter
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