[Dev] Re: Chandler Query Proposal 0.1
Ted Leung
twl at osafoundation.org
Wed Feb 25 15:35:41 PST 2004
On Feb 25, 2004, at 12:48 PM, Don Dwiggins wrote:
> I think you need to offer both options, to allow the system's user (the
> application programmer) to make the tradeoff. Of course, if you can
> give a
> rough hint, that might be useful in some cases. (In the API I was
> using,
> the result set object is specified so that the "number of rows"
> attribute is
> only guaranteed accurate when the last row is accessed, either by
> iterating
> through the rows or doing a "move to last" operation.)
Actually this is probably not hard. The "wait till it's done w/
accurate size"
version could be a decorator of the streaming one. If you decided you
really needed
exact info all the time, you would just construct this decorator with
the streaming
implementation as an argument. The decorator just forces the
generator/iterator to
exhaust itself before returning any data.
----
Ted Leung Open Source Applications Foundation (OSAF)
PGP Fingerprint: 1003 7870 251F FA71 A59A CEE3 BEBA 2B87 F5FC 4B42
More information about the Dev
mailing list