JetBrains / JetBrains/Exposed

Allow to deactivate entity cache

Abierto
#653 4 comentarios 0 reacciones 0 asignados Ver en GitHub
enhancement
Lenguaje dominante
Kotlin
Estrellas
9.3k
Forks
798
Merge medio
4 d 2 h
PR fusionados (30 d)
26

Descripción

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

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.