Re: [Modeling-users] Limit
Status: Abandoned
Brought to you by:
sbigaret
From: Sebastien B. <sbi...@us...> - 2003-02-21 15:24:02
|
> Limit to a fixed maximum number? Don't think you can (for Sebastien to > confirm) unless there is hidden support for specifying TOP N on SELEC= Ts > (which i think is not standard SQL?). And, how would you get the next= batch > then? Sorry soif, Mario's right... there's currently no way to limit or bat= ch the fetch. However EditingContext.objectsCountWithFetchSpecification() will tell you how many objects (in fact, the upper limit) you'll get = if you send the same parameters to objectsWithFetchSpecification(). More on this: if someone knows some standard SQL for doing this, I'm interested, it would for sure make the release-time for such a featur= e, if requested, closer than it actually is. > would be really nice to have a generic declarative way for this > (essentially cursors, or paging, but as far the client app code is > concerned, there should be no worries about maintaining state > information). Sure. Know what? It's on the TODO list :) Cheers, -- S=E9bastien. PS: I'll be off from now until tomorrow evening, but you can still expe= ct v0.9 being released this week-end. >=20 > > Hi all :) > > > > > > I'm just wondering how can i limit the result fetched by > > a qualifier. I think i forgot how this work :) > > > > |