Replies: 1 comment 2 replies
-
|
There shouldn't be a speed difference if it's hosted locally. The macros do tend to take forever if network latency is at all a factor. I'm not entirely sure why but I'd bet that Tokio and SQLx being compiled in debug mode has something to do with it. Try the tip from the end of the following section in our README, see if it helps: https://github.com/launchbadge/sqlx/#compile-time-verification |
Beta Was this translation helpful? Give feedback.
2 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.
-
Hi. I am observing some weird behavior when using
sqlxhaving a postgres-db in docker-compose.When using a local postgres-database,
cargo checktakes around 2-3 seconds.When using the database from docker-compose,
cargo checktakes 20 seconds.When setting
SQLX_OFFLINEtotrue, both are around 2 seconds.Do anyone have any idea why this happens?
Beta Was this translation helpful? Give feedback.
All reactions