What techniques are available for filtering collections of objects when using zodb?
- by Omega
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.