Session.get() (SQLA docs) tries to fetch an object from the session's identity map if it exists, and performs a SQL query otherwise.
This improves load() performance by reducing number of SQL queries, especially for nested relationships, if everything is already available into the session.
Session.get() (SQLA docs) tries to fetch an object from the session's identity map if it exists, and performs a SQL query otherwise.
This improves
load()
performance by reducing number of SQL queries, especially for nested relationships, if everything is already available into the session.