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

Cache uri generation in json #89

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

thorbjoernl
Copy link
Collaborator

Change Summary

Adds persistent caching of URIs to the jsonfiledb implementation, which speeds up iterating over uris significantly (once they have been cached).

INFO:aerovaldb.jsondb.jsonfiledb:Initializing aerovaldb for './tests/test-db/json' with locking False
json_files: 47 items in 0.117 seconds
sqlite:     47 items in 0.001 seconds
INFO:aerovaldb.jsondb.jsonfiledb:Initializing aerovaldb for './tests/test-db/json' with locking False
json_files: 47 items in 0.004 seconds (Cached)

Related issue number

#74

Checklist

  • Start with a draft-PR
  • The PR title is a good summary of the changes
  • PR is set to AeroTools and a tentative milestone
  • Documentation reflects the changes where applicable
  • Tests for the changes exist where applicable
  • Tests pass locally
  • Tests pass on CI
  • At least 1 reviewer is selected
  • Make PR ready to review

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

Successfully merging this pull request may close these issues.

1 participant