Does Exposed have something like Hibernate's "first lvl cache"?
The query returns 2 objects (I'm using join) but as they are the same I wanted to discard one.
t
tapac
11/26/2019, 10:29 AM
Yes, there is EntityCache in Exposed. Every time you fetch entity with same id (within transaction) you will get the same object instance,
👍 1
r
Rodrigo Silva
11/26/2019, 12:10 PM
thanks @tapac
do i have to do any extra setup?
I'm using leftjoin but always comes more than one object with same
t
tapac
11/26/2019, 1:09 PM
Do you use DAO or DSL + data classes?
r
Rodrigo Silva
11/26/2019, 1:09 PM
DSL
t
tapac
11/26/2019, 1:10 PM
Then there is no caches (yet) as Exposed don't know anything about your model.