Re: limiting the amount of objects retrieved

Sebastien Bigaret <[email protected]> 06 Feb 2004 17:15:09 +0100
Newsgroups gmane.comp.python.modeling
Message-ID <[email protected]>
John Lenton <[email protected]> wrote:
> I need (or, rather, would like) to be able to use the 'splice
> parameters' that I see commented out in Modeling.EditingContext to be
> able to send feedback to the user as to how many objects have been
> retrieved (and to let her cancel the operation if necessary). Is there
> anything left to be done to be able to use these parameters?

  A patch was once made for using slice parameters; I was not able to
  find it on sf.net, however if you're interested in testing it I can
  make it available on sf tonite after I'm back home.

If the goal is simply to control that not too much objects are fetched
by a query, you may want to use ec.fetchCount() [same API as ec.fetch()]
which returns the number of objects fetched (without actually fetching
them).

-- Sébastien.



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn