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
I'm having some difficulty understanding with one of my SQL request as seen above because it is taking me way too much time when it shouldn't.
This SQL request take me 500ms when the database only have 2500 lines.
As you can see also, the model doesn't have a lot of complicated stuff, the only thing that could make it difficult is the "emoji" field which is a litteral emoji in the database.
I've tried to do the same request with the mysql_connector library and it took me 15ms.
I've linked some files that displays the cProfile results.
!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
Hi everyone,
I'm having some difficulty understanding with one of my SQL request as seen above because it is taking me way too much time when it shouldn't.
This SQL request take me 500ms when the database only have 2500 lines.
As you can see also, the model doesn't have a lot of complicated stuff, the only thing that could make it difficult is the "emoji" field which is a litteral emoji in the database.
I've tried to do the same request with the mysql_connector library and it took me 15ms.
I've linked some files that displays the cProfile results.
!
cProfile when running with SQLmodel
image
cProfile when running with mysql_connector

Database extract

Any idea what could be the issue?
Thanks!
Operating System
Linux
Operating System Details
No response
SQLModel Version
0.0.16
Python Version
3.11
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions