Code review comment for lp://staging/~julian-edwards/launchpad/count-cull

Revision history for this message
Julian Edwards (julian-edwards) wrote :

On Thursday 13 January 2011 20:39:08 you wrote:
> Review: Approve
> To confirm I grok this: rather than forcing a complete evaluation, we do a
> LIMIT 1 query? Sounds reasonable to me.

Yup, that's what is_empty() does, which is what __nonzero__ calls. I've also
avoided double queries in places by just trying to access the data and
catching IndexError.

« Back to merge proposal