I run a selectmulti query over 5 entity but it take a very long time to complete.
using var Db = dbConnectionFactory.OpenDbConnection();
var q = Db.From<EntityA>()
.LeftJoin<EntityA,EntityB>((EntityA, EntityB) => EntityA.Id == EntityB.Id)
.Join<EntityA,EntityC>((EntityA, EntityC) => EntityA.Id == EntityC.Id)
.LeftJoin<EntityA,EntityD>((EntityA, EntityD) => EntityD.Id == EntityA.Id )
.LeftJoin<EntityA,EntityE>((EntityA, EntityE) =>EntityA.OriginalName == EntityE.Nome )
;
Stopwatch stopWatch = new Stopwatch();
stopWatch.Start();
var tuples = Db.SelectMulti<EntityA, EntityB, EntityC,EntityD,EntityE>(q);
If I run in realease mode the code will return the result in few seconds…
There are some configuration to speed up Ormlite in debug mode?
Thanks a lots Gianmaria.