Thomas Mueller created OAK-439:
----------------------------------

             Summary: Query: if a result limit is set, avoid reading all rows 
in memory to sort
                 Key: OAK-439
                 URL: https://issues.apache.org/jira/browse/OAK-439
             Project: Jackrabbit Oak
          Issue Type: Bug
            Reporter: Thomas Mueller
            Assignee: Thomas Mueller
            Priority: Minor


Queries that use "order by" currently load all nodes in memory. Having to read 
all data in memory can be avoided if the index used returns the data in sorted 
order (currently not implemented), but in some cases, for example if there is 
no such index, the data needs to be read. In many cases this isn't actually a 
problem. However, if the result is large, it is a problem.

To limit the memory usage, instead of reading all data in memory, only a number 
of nodes could be read, then sorted, the result truncated, more data read, 
sorted, and so on.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to