tuvarna-coursework / transport-system-management

2 stars 2 forks source link

[DATABASE] Refactor DatabaseUtil class and improve database speed #18

Closed MaximilianGeorgiev closed 3 years ago

MaximilianGeorgiev commented 3 years ago

Currently, there are things that are static whereas they shouldn't be. Since some entities (like Roles) are static ones fethed from the database and they are hard-coded, I must find a way to make sure they are initialized once and not every time (calling the service next to the class).

Look for opportunities to improve database speed - check transaction span, reuse global session (already done), factories etc.