-
Notifications
You must be signed in to change notification settings - Fork 348
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
Compilation time issue when having a lot of requests in a project #2737
Comments
I can second this complaint. We have invested quite a lot of time to migrate from Doobie to pure Quill queries and now the compilation times are really slow. It feels like for some reason the work is done in sequence in a single thread instead of in parallel, but I don't know quite why. Any kind of suggestion how to speed up the compilation time will be highly appreciated. Or at least some explanation why is there such slowdown... |
Thanks for the pointer @guizmaii , however the compilation time did not improve significantly and I started getting runtime errors from Quill 😬 , so this solution did not work in my case. It might be due to the fact that we use quill-doobie and not a pure quill implementation 🤷 |
Thanks for the suggestions, @jilen When trying to run with Regarding the runtime error: I've detected the error when running the unit/integration tests of the project and it is due to Error sample:
If I remove the manual creation of the QueryMeta instance and rely on the macro, then everything works normally. |
@lachezar You may need things like Or just try java8 instead. |
@jilen I ran the compilation of my "db" sbt module (containing all my Quill code) with the |
Hi everyone,
We have a project that contains a lot of SQL queries written with Quill, and we see our compilation time increase significantly.
Is there any tip on optimising the compilation time in such cases?
I personally don't know much about Scala2 (nor Scala3) macros but how can we help to provide you with information so that you could maybe find optimisation in your code?
Version: latest
Module:
quill-jdbc-zio
Database: PG
@getquill/maintainers
The text was updated successfully, but these errors were encountered: