Replies: 1 comment
-
I encountered a similar problem, has this problem been solved? I am also looking for the best implementation of batch operations that conforms to sqlmodel. Also, The document sqlalchemy 2.0 I viewed showed the difference between the old and new writing methods. However, I still like the concise call writing method like Does anyone know of any batch operation solutions for sqlmodel? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I would like to create a function to bulk insert rows for one of my models and return those rows as a response in FastAPI.
The problems I have found are:
The following solution works, but it feels like a bit of an "anti-pattern" when using SQLModel since I would want SQLModel to do a bit more of the heavy-lifting for the sql statements.
Operating System
Windows
Operating System Details
Windows 10
SQLModel Version
0.0.22
Python Version
Python 3.13.0
Additional Context
I am really enjoying how simple SQLModel makes the dev experience with FastAPI, would love to know if there is a better way to do this that I am not familiar with.
Beta Was this translation helpful? Give feedback.
All reactions