saveourtool/save-cloud

Backend: JPA / spring-data / hibernate improvements

Open

#575 建立於 2022年2月15日

在 GitHub 查看
 (1 留言) (0 反應) (2 負責人)Kotlin (4 fork)github user discovery
enhancementgood first issue

倉庫指標

Star
 (38 star)
PR 合併指標
 (PR 指標待抓取)

描述

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

貢獻者指南