Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *updated* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiOGQxYzlmYWUy...
) / Deprecation (
https://hibernate.atlassian.net/browse/HHH-16441?atlOrigin=eyJpIjoiOGQxYz...
) HHH-16441 (
https://hibernate.atlassian.net/browse/HHH-16441?atlOrigin=eyJpIjoiOGQxYz...
) Improve support for @BatchSize (
https://hibernate.atlassian.net/browse/HHH-16441?atlOrigin=eyJpIjoiOGQxYz...
)
Change By: Steve Ebersole (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
During the development of 6.x Specifically , there are 2 aspects of batch fetch support
that can be improved -
# Cache generated SQL AST and friends when possible
# Implement support for different strategies for handling batch-size in different
scenarios - ala legacy {{BatchFetchStrategy}} as applied to {{@BatchSize}} for entity and
collection fetches was not ported due to time constraints.
In If the interim, {{BatchFetchStrategy}} was deprecated. Which is fine. I think the
strategy for entity and collection thing being batch fetching should be fetched has a mix
{{DYNAMIC}} and {{PADDED}} single-column key , offer support for loading based on a single
SQL ARRAY parameter. Otherwise, fallback to the outcome of “padded” strategy (though
potentially partitioning the underlying fetching into smaller chunks depending on
{{Dialect#getDefaultBatchLoadSizingStrategy}}.
The current implementation implements For the {{DYNAMIC}} ARRAY strategy.
When {{PADDED}} is used , we should cache the generated SQL AST look at supporting that
for multi-load also. When {{DYNAMIC}}, we should maybe offer some limited caching of SQL
AST(s).
(
https://hibernate.atlassian.net/browse/HHH-16441#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-16441#add-comment?atlOrigin=ey...
)
Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100221- sha1:916089c )