jopa icon indicating copy to clipboard operation
jopa copied to clipboard

Optimize entity retrieval from query result

Open ledsoft opened this issue 4 months ago • 0 comments

Currently, when a query results in entities being retrieved from the repository, it leads to (at minimum) n + 1 repository calls - one for the query execution and n for loading each of the entities (not counting additional fetches of references).

This has suboptimal performance. It would be better to be able to read the entities directly from the query results, thus reducing the number of repository calls to 1 (not counting additional reference fetches).

ledsoft avatar Aug 04 '25 11:08 ledsoft