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

Use Session.get() in get_instance instead of Session.query() #548

Merged
merged 2 commits into from Jan 7, 2024

Commits on Dec 30, 2023

  1. Use Session.get() in get_instance instead of Session.query()

    Session.get() tries to fetch an object from the session's identity map if it exists, and performs a SQL query otherwise.
    
    This can help improve load performance by reducing number of SQL queries, especially for nested relationships, if everything is already available into the session.
    zippolyte committed Dec 30, 2023
    Configuration menu
    Copy the full SHA
    82f6b83 View commit details
    Browse the repository at this point in the history

Commits on Jan 7, 2024

  1. Update changelog

    sloria committed Jan 7, 2024
    Configuration menu
    Copy the full SHA
    b909960 View commit details
    Browse the repository at this point in the history