[hibernate-issues] [JIRA] (HSEARCH-3947) Avoid creating huge arrays for collectors when a query does not have an upper bound limit

Fabio Massimo Ercoli (JIRA) jira at hibernate.atlassian.net
Thu Jun 11 06:14:21 EDT 2020


Fabio Massimo Ercoli ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A097eae70-1c75-4c16-ab75-ab9600f8e584 ) *created* an issue

Hibernate Search ( https://hibernate.atlassian.net/browse/HSEARCH?atlOrigin=eyJpIjoiYWJkYWM2ODUwZGFmNDk3NzgyY2FkNTljYjk4MjlhYzEiLCJwIjoiaiJ9 ) / Task ( https://hibernate.atlassian.net/browse/HSEARCH-3947?atlOrigin=eyJpIjoiYWJkYWM2ODUwZGFmNDk3NzgyY2FkNTljYjk4MjlhYzEiLCJwIjoiaiJ9 ) HSEARCH-3947 ( https://hibernate.atlassian.net/browse/HSEARCH-3947?atlOrigin=eyJpIjoiYWJkYWM2ODUwZGFmNDk3NzgyY2FkNTljYjk4MjlhYzEiLCJwIjoiaiJ9 ) Avoid creating huge arrays for collectors when a query does not have an upper bound limit ( https://hibernate.atlassian.net/browse/HSEARCH-3947?atlOrigin=eyJpIjoiYWJkYWM2ODUwZGFmNDk3NzgyY2FkNTljYjk4MjlhYzEiLCJwIjoiaiJ9 )

Issue Type: Task Affects Versions: 6.0.0.Beta8 Assignee: Unassigned Components: backend-lucene Created: 11/Jun/2020 03:14 AM Fix Versions: 6.0.0.Beta-backlog-low-priority Priority: Major Reporter: Fabio Massimo Ercoli ( https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%3A097eae70-1c75-4c16-ab75-ab9600f8e584 )

Instead of allocating such arrays, we could introduce an incremental allocation behind the hood.
E.g.: we'd execute the query once to retrieve the top 100, and if there is more, we'd do it again with 200, then 400, then 800, and so on.

( https://hibernate.atlassian.net/browse/HSEARCH-3947#add-comment?atlOrigin=eyJpIjoiYWJkYWM2ODUwZGFmNDk3NzgyY2FkNTljYjk4MjlhYzEiLCJwIjoiaiJ9 ) Add Comment ( https://hibernate.atlassian.net/browse/HSEARCH-3947#add-comment?atlOrigin=eyJpIjoiYWJkYWM2ODUwZGFmNDk3NzgyY2FkNTljYjk4MjlhYzEiLCJwIjoiaiJ9 )

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.core&referrer=utm_source%3DNotificationLink%26utm_medium%3DEmail ) or iOS ( https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=EmailNotificationLink&mt=8 ) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100128- sha1:3143c77 )
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/hibernate-issues/attachments/20200611/8f1bb29f/attachment.html 


More information about the hibernate-issues mailing list