We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4b74e2 commit 6777977Copy full SHA for 6777977
hibernate-core/src/main/java/org/hibernate/engine/query/spi/HQLQueryPlan.java
@@ -211,6 +211,10 @@ public List performList(
211
queryParametersToUse = queryParameters;
212
}
213
214
+ //fast path to avoid unnecessary allocation and copying
215
+ if ( translators.length == 1 ) {
216
+ return translators[0].list( session, queryParametersToUse );
217
+ }
218
final int guessedResultSize = guessResultSize( rowSelection );
219
final List combinedResults = new ArrayList( guessedResultSize );
220
final IdentitySet distinction;
0 commit comments