JetBrains / JetBrains/Exposed

Allow to deactivate entity cache

Aperta
#653 4 commenti 0 reazioni 0 assegnatari Vedi su GitHub
enhancement
Lingua principale
Kotlin
Stelle
9.3k
Fork
798
Merge medio
4g 2h
PR unite (30g)
26

Descrizione

I use Table to create/update/delete data in DB.
I use Entity (DAO) for some simple read.
I use Entity with a custom Query done with a Table then call `Entity.wrapRows(...).toList()`.

When using wrapRows I get cached entities which is absolutely wrong, I would like to get the actual ResultRow transformed into an Entity with the proper data.

![entity_cache_ignore_row_result](https://user-images.githubusercontent.com/3595693/66374718-356f2a00-e9de-11e9-8c2a-195418bdb1a5.png)

Due to this behavior, I can get entities with old values inside the current transaction cache but those entities have been modified in other transaction which have been committed already.
@Tapac

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.