I have a database with 20 tables inside it. I want to fetch records from 10 related tables at a time, and I am using Hibernate. What is the best solution: to write a single query using join with select, or write 2 or 3 simple queries? I want to select the better solution for my service.
Share
If the tables are related to each other, I would try using JOINS, they provide better (much better) performance than just using nested queries.