saveourtool/save-cloud

Backend: JPA / spring-data / hibernate improvements

Open

#575 geöffnet am 15. Feb. 2022

Auf GitHub ansehen
 (1 Kommentar) (0 Reaktionen) (2 zugewiesene Personen)Kotlin (4 Forks)github user discovery
enhancementgood first issue

Repository-Metriken

Stars
 (38 Stars)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

Mark entities / columns / transactions:

  • readonly (@Transactional(readOnly = true)): reduces memory consumption
  • non-nullable as per DB constrains (@Column(nullable = false)) => properties can have non-nullable type
  • Make all associations lazy
  • others?


Hibernate L2 caches:

Some entities that are worth caching:

  • Users, user-project associations (#580, #649) - won't change often, but are required for all permission checks
  • Projects, organizations - won't change often, but are often required by frontend

build time enhancement

Contributor Guide