I'm working in a project and we have tons of data for each call that we are doing from the front-end to the back-end.
The thing is that we have a really huge database and we have tons of coupled entities.
For example, we have to bring the user, but it has an "address" object with a lot of information, and also this has a "city" object with more information, and then we have "zip code" same and so...
The thing is that we are facing some performance issues when we have some concurrent users. We are creating a query for each user, and then another one for each address, and then another one for each city... The thing is that when we are getting all the users all this nested objects, even if it's the same city, we create a SQL for each user.
Can we use something in hibernate to improve this performance?
Thank you so much Best regards