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

Try to speed up queries with Yield Per #42

Open
jwodder opened this issue Oct 16, 2023 · 0 comments
Open

Try to speed up queries with Yield Per #42

jwodder opened this issue Oct 16, 2023 · 0 comments
Labels
needs research More information is required performance More efficient use of time and space

Comments

@jwodder
Copy link
Collaborator

jwodder commented Oct 16, 2023

SQLAlchemy documentation: https://docs.sqlalchemy.org/en/20/orm/queryguide/api.html#orm-queryguide-yield-per

Possible places where this could be used:

  • Fetching wheels for the dump command (currently paginated via
    Flask-SQLAlchemy)

  • Assuming it's safe to use Yield Per while modifying the results:

    • Project query in purge_old_versions()
    • Wheel.to_process()
    • process_orphan_wheels()
@jwodder jwodder added needs research More information is required performance More efficient use of time and space labels Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs research More information is required performance More efficient use of time and space
Projects
None yet
Development

No branches or pull requests

1 participant