JetBrains / JetBrains/Exposed

Allow to deactivate entity cache

Offen
#653 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
enhancement
Vorherrschende Sprache
Kotlin
Sterne
9.3k
Forks
798
Ø Merge
4 T. 2 Std.
Gemergte PRs (30 T.)
26

Beschreibung

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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.