-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Labels
Data storage layerRelated to anything that works with dataRelated to anything that works with databugSomething isn't workingSomething isn't working
Description
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 * FROM users, users WHERE users.id = 1However, the query should be:
SELECT * FROM users WHERE users.id = 1Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Data storage layerRelated to anything that works with dataRelated to anything that works with databugSomething isn't workingSomething isn't working