You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem with SQLAlchemy 2 DeclarativeBase model imports
There is a new class for DeclarativeBase models in SQLAlchemy 2. The problem is in AlchemyRepository querying. If the model import is different from the one in the Repository creation, then SQLAlchemy adds another SQL table selection to the query. That results in big overheads and possible sql errors.
Example:
SELECT*FROMusers, usersWHEREusers.id=1
However, the query should be:
SELECT*FROMusersWHEREusers.id=1
The text was updated successfully, but these errors were encountered:
Problem with SQLAlchemy 2 DeclarativeBase model imports
There is a new class for DeclarativeBase models in SQLAlchemy 2. The problem is in
AlchemyRepository
querying. If the model import is different from the one in the Repository creation, then SQLAlchemy adds another SQL table selection to the query. That results in big overheads and possible sql errors.Example:
However, the query should be:
The text was updated successfully, but these errors were encountered: