saveourtool/save-cloud

Backend: JPA / spring-data / hibernate improvements

Open

#575 aberto em 15 de fev. de 2022

Ver no GitHub
 (1 comment) (0 reactions) (2 assignees)Kotlin (4 forks)github user discovery
enhancementgood first issue

Métricas do repositório

Stars
 (38 stars)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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

Guia do colaborador