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

Allow specifying hint to sqlstorage, to only load specific fields #22

Open
kagesenshi opened this issue Apr 28, 2020 · 1 comment
Open

Comments

@kagesenshi
Copy link
Member

Currently we default to selecting all fields in sqlstorage, which can cause bad performance. SQLAlchemy have a way to give hint to only load some fields:

https://docs.sqlalchemy.org/en/13/orm/loading_columns.html#sqlalchemy.orm.load_only

Look into providing hint at request environment to only only load some fields

@kagesenshi
Copy link
Member Author

There's also deferred loading option the orm , which I'm not sure how it behaves with our current architecture

https://docs.sqlalchemy.org/en/13/orm/loading_columns.html#deferred-column-loading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant