Search code examples
sorm

High query response time with SORM on small DB


I am using sorm with H2 in a small scala application. Is normal at the first query like

db.query.where(filter).fetch()

to wait for the response 9 seconds? Is a just a warm-up time or my mistake? I get the same behavior with Postgres.

My Db is very small, just 6 items.


Solution

  • It is a warm up of the Scala's Toolbox component, utilized by SORM. It only happens on start up, so don't worry.