On Wed, Dec 31, 2008 at 01:10:41AM -0600, Stephen Compall wrote: > > Robin Lee Powell <[email protected]> writes: > > Imagine my surprise, then, to discover that the CLSQL version of > > find-persistent-objects totally ignores slot: and value:, instead > > pulling the entire table. Ewwww. > > Actually this rarely happens in Weblocks; even when no custom query is > specified, we pull a limited range of usually 15 elements with the > :range argument, keeping the set order stable with :order-by.
The query that was running was for everything; this was from my own code that was running find-persistent-objects on its own, though. > > That seems bad to me; there should be a generic API for finding > > objects that have a particular value in a particular slot, since > > such a query should make sense no matter the backend. > > Here is the problem: where do you stop? You can call the inability to > do any particular type of query a "bug". Oh sure, but "grab all objects that have X in slot Y" seems a pretty sane thing to have. -Robin -- They say: "The first AIs will be built by the military as weapons." And I'm thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "weblocks" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/weblocks?hl=en -~----------~----~----~----~------~----~------~--~---
