[
https://jira.duraspace.org/browse/DS-659?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=28238#comment-28238
]
Mark H. Wood commented on DS-659:
---------------------------------
A suggestion: if we only want the first N, can we do this with an Iterable and
just close the query after we have enough? (There are lots of places where we
should be using iteration instead of sucking in huge arrays.)
> Collection.findAll performance issue - offset and limit improvement
> -------------------------------------------------------------------
>
> Key: DS-659
> URL: https://jira.duraspace.org/browse/DS-659
> Project: DSpace
> Issue Type: Improvement
> Components: DSpace API
> Affects Versions: 1.7.0
> Reporter: Bojan Suzic
> Priority: Trivial
> Attachments: collection.java.add.txt
>
> Original Estimate: 1 hour
> Remaining Estimate: 1 hour
>
> During the REST API development it has been noticed that in some cases
> Collection.findAll may introduce performance issues, e.g. by working on big
> collections.
> For REST based browsing it is inefficient to preload big collection of say
> 20000 items and then return only first 100 items to the user. There are also
> other examples.
> In order to prevent those issues and optimize response I created two
> additional findall functions making possible to use offset and limit clauses
> during collections browsing. Also the simple function for returning number of
> collections in the system is added.
--
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
------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
Dspace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/dspace-devel