I appreciate hibernate's ability to query an interface. I would like to request a feature in the name of performance on these types of queries.
In some object hierarchies, querying an interface can be quite exhaustive because hibernate performs a separate SQL query for every single class that implements the interface. In a current project, for example, hibernate is generating about 15 separate SQL queries when querying an interface.
Could outer join fetching help performance here -- join all of the queries together into one big SQL statement instead of several individual statements?
Just a thought, and if possible, then a feature suggestion. :)
Best regards,
Ryan
|