I would like to know if there's a really performance gain between those two options :
Option 1 :
- I do a SQL Query with a join to select all User and their Ranks.
Option 2 :
- I do one SQL Query to select all User
- I fetch all user and do another SQL Query to get the Ranks of this User.
In code, option two is easier to realize for me. That's only because the way I design my Persistence layer.
So, I would like to know what's the impact on performance. After what limit I should consider to take Option 1 instead of Option 2 ?