What techniques are available for filtering collections of objects when using zodb?

Posted by Omega on Stack Overflow See other posts from Stack Overflow or by Omega
Published on 2010-04-15T02:27:05Z Indexed on 2010/04/15 2:33 UTC
Read the original article Hit count: 229

Filed under:
|

As the title says: What techniques are available for filtering objects when using zodb?

The equivalent in SQL terms would be something like filtering results by a date range. Or only returning rows with a particular value set in a column.

If I had a series of blog posts and only wanted ones done in the past month, what would I have to do? Is there any way to optimize these kinds of "queries"? My gut tells me iterating over all the objects in a relationship simply to perform a test is less than optimal.

© Stack Overflow or respective owner

Related posts about zodb

Related posts about ephemeral-data