-
-
Notifications
You must be signed in to change notification settings - Fork 664
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
Add support for deferred column loading #97
Comments
Having same issue, did you find any alternative with base SQLAlchemy or something? |
Did you find a solution? |
I think that we can use the new |
any news how to use sa_type for deferred loading? |
@tiangolo can you provide some information if / how it possible to leverage SQLalchemy's deferred loading mechanism in SQLModel ? I also could not find a way to make deferred loading on column level (not on query level) work. sa_column setting is not recognized by SQLModel and still loads the deferred column blob: bytes | None = Field(default=None, sa_column=deferred(Column(LargeBinary))) |
First Check
Commit to Help
Example Code
Description
The ability to be able to included deferred sql columns
Wanted Solution
I would like to be able to work with sqlalchemy deferred columns, so that certain columns are not loaded by default as part of a model
Wanted Code
Alternatives
No response
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.4
Python Version
3.9.6
Additional Context
No response
The text was updated successfully, but these errors were encountered: