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.
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.