Dashboard > WebObjects > EOF-Using EOF-Fetch Limits
  WebObjects Log In View a printable version of the current page.  
  EOF-Using EOF-Fetch Limits
Added by Steven Mark McCraw, last edited by David Holt on Sep 18, 2007  (view change)
Labels: 
(None)

Overview

By default, when you use an EOFetchSpecification, it will fetch all of the EOs that match its EOQualifier. However, often the user interface you will be using is paginated, and there are large performance wins by instead loading your results in pages.

Core WO

EOFetchSpecification provides a setFetchLimit(int) method, but it does not directly support pagination, rather it will simply stop returning results after the number specified. This is useful for a cut-and-run approach to querying, but if you need to provide multiple pages of results, you will likely need to look elsewhere.

Project Wonder

Project Wonder provides several faciliities for addressing this problem:

  • ERXEOControlUtilities.objectsInRange(ec, fs, start, end) for PostgreSQL, MySQL, and FrontBase
  • ERXBatchingDisplayGroup
  • ERXRecursiveBatchFetching
  • ERXFetchSpecificationBatchIterator Max Muller's original post describing this

Site powered by a free Open Source Project / Non-profit License (more) of Confluence - the Enterprise wiki.
Learn more or evaluate Confluence for your organisation.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators