NAJU-Sachsen / NAJU-Adebar

Management tool used by the NAJU Sachsen to keep track of volunteers and the like.
http://naju-sachsen.de
GNU General Public License v3.0
0 stars 0 forks source link

Optimize database layout #20

Closed rbergm closed 6 years ago

rbergm commented 6 years ago

Currently the database is using the schema exactly as it was generated by Spring JPA. However this is far from optimal, as some unnecessary columns are being created and all entries are eagerly fetched. @MapKey and fetch = FetchType.LAZY should be used more often. Furthermore columns should be joined where possible and columns should receive more speaking names.

rbergm commented 6 years ago

Further assessment on whether an object should be an entity or may remain embeddable is needed, too.

rbergm commented 6 years ago

Resolved by ae42fcb46e430f644afc824302c7d46adeb38f7f