[Zope3-dev] Re: I want Object Gadfly

Jim Fulton jim@zope.com
Mon, 21 Jul 2003 09:57:19 -0400


Paul Winkler wrote:
> On Fri, Jul 18, 2003 at 02:39:22PM -0400, Jim Fulton wrote:
> 
>>>Should queries
>>>have access to the referenced object directly, or only to some kind of 
>>>referential meta-data? 
>>
>>Reference to object directly.
>>
>>
>>>In other words, is this kosher:
>>>
>>>SELECT * from user_links
>>>WHERE source.absolute_url().startswith('/articles/2003')
>>> and source.title contains 'Gadfly';
>>
>>Yup.
> 
> 
> So every query will wake up every object referenced in the table?

Not necessarily. That would depend on the query and the indexes available.

Jim


-- 
Jim Fulton           mailto:jim@zope.com       Python Powered!
CTO                  (703) 361-1714            http://www.python.org
Zope Corporation     http://www.zope.com       http://www.zope.org