Scala Slick 3 High Query Latency
I am running a very simple query using Slick. The actual database call, according to the logs, only takes ~500µs, but the time between my db.run call and the result is much higher
Solution 1:
Problem solved using the official Microsoft driver instead of jtds
<dependency><groupId>com.microsoft.sqlserver</groupId><artifactId>sqljdbc4</artifactId><version>4.0</version></dependency>FYI the driver class is com.microsoft.sqlserver.jdbc.SQLServerDriver
Total time is now ~20ms. Then, adding C3PO, my latency is around 4ms, which is around what I was expecting.
Post a Comment for "Scala Slick 3 High Query Latency"