[ https://issues.apache.org/jira/browse/OAK-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Davide Giannella closed OAK-2931. --------------------------------- Bulk Close for 1.3.0 > RDBDocumentStore: mitigate effects of large query result sets > ------------------------------------------------------------- > > Key: OAK-2931 > URL: https://issues.apache.org/jira/browse/OAK-2931 > Project: Jackrabbit Oak > Issue Type: Sub-task > Components: rdbmk > Affects Versions: 1.2.2, 1.0.14, 1.3 > Reporter: Julian Reschke > Assignee: Julian Reschke > Labels: resilience > Fix For: 1.3.0, 1.2.3, 1.0.15 > > > With the DocumentStore query API, large result sets can happen; and these are > returned as List<Document>, potentially causing large amounts of memory to be > allocated. > In the current implementation, the result list is generated based on a list > of internal row presentations (RDBRow). These are currently freed when the > method finishes. They should be freed as early as possible. > Furthermore, when the result set gets big, RDBDocumentStore should llog an > error containing the call chain, so that the component doing the excessive > query can be identified (it should use paging instead). > (For completeness: we could also change the code to lazily populate the list; > but that would be a bigger change) -- This message was sent by Atlassian JIRA (v6.3.4#6332)