You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-issues@jackrabbit.apache.org by "Julian Reschke (JIRA)" <ji...@apache.org> on 2015/05/29 09:17:17 UTC

[jira] [Updated] (OAK-2931) RDBDocumentStore: mitigate effects of large query result sets

     [ https://issues.apache.org/jira/browse/OAK-2931?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Julian Reschke updated OAK-2931:
--------------------------------
    Summary: RDBDocumentStore: mitigate effects of large query result sets  (was: RDBDocumentStore: mitigate effects of large query result setsT)

> 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
>             Fix For: 1.3.0
>
>
> 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)