Problem . Object models created using ORM often need to execute multiple queries to perform a single action. For example, the get action can retrieve information from multiple tables, especially if you have a nested object structure. For complex queries, these queries can add up and your database will start blocking long before this happens if you manually wrote SQL.
Question . Where do you download the ORM balance to reduce the number of queries that need to be completed, and more importantly , why do you choose this approach? Do you have separate models for loading context-sensitive data, or do you indicate what data should be loaded in the controller? Or something else?
source
share