Does Exposed have something like Hibernate's "firs...
# exposed
r
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
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
thanks @tapac do i have to do any extra setup? I'm using leftjoin but always comes more than one object with same
t
Do you use DAO or DSL + data classes?
r
DSL
t
Then there is no caches (yet) as Exposed don't know anything about your model.
r
thanks again