[Zope-dev] Zope Tests: 7 OK

2007-02-24 Thread Zope Tests Summarizer
Summary of messages to the zope-tests list.
Period Fri Feb 23 12:00:00 2007 UTC to Sat Feb 24 12:00:00 2007 UTC.
There were 7 messages: 7 from Zope Unit Tests.


Tests passed OK
---

Subject: OK : Zope-2.6 Python-2.1.3 : Linux
From: Zope Unit Tests
Date: Fri Feb 23 21:07:32 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007321.html

Subject: OK : Zope-2.6 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Fri Feb 23 21:09:02 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007322.html

Subject: OK : Zope-2.7 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Fri Feb 23 21:10:32 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007323.html

Subject: OK : Zope-2.8 Python-2.3.6 : Linux
From: Zope Unit Tests
Date: Fri Feb 23 21:12:02 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007324.html

Subject: OK : Zope-2.9 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Fri Feb 23 21:13:32 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007325.html

Subject: OK : Zope-2.10 Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Fri Feb 23 21:15:02 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007326.html

Subject: OK : Zope-trunk Python-2.4.4 : Linux
From: Zope Unit Tests
Date: Fri Feb 23 21:16:32 EST 2007
URL: http://mail.zope.org/pipermail/zope-tests/2007-February/007327.html

___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


Re: [Zope-dev] Re: Caching ZCatalog results

2007-02-24 Thread Dieter Maurer
Roché Compaan wrote at 2007-2-23 22:00 +0200:
> ...
>Thanks for that pointer. It's good that way, it should make invalidation
>easier. It could be as simple as invalidating any cached result that
>contains the documentId being indexed. Do you see any problem with the
>following invalidation strategy:
>
>If the 'documentId' exists (cataloging existing object), invalidate all
>cached result sets that contain the documentId.
>
>If the 'documentId' doesn't exist (cataloging new object), invalidate
>all result sets where the ids of indexes applied, are contained in the
>cache key for that result set.

I see several problems:

  *  the RAMCacheManager does not provide an API to implement
 this policy

  *  a cache manager would need a special data structure
 to efficiently implement the policy (given a documentId,
 find all cached results containing the documentId).

  *  Apparently, your cache key contains the indexes involved
 in producing the result.

 The problem with this is that these indexes are known
 only after the query has been performed:

The catalog API allows indexes to respond to subqueries,
that do not contain their own name.

I use this feature to allow a "Managable RangeIndex"
to transparently replace "effective, expires" queries.

But otherwise, the feature is probably not used
intensively.

 Of course, you can add the information *after*
 the query has been performed and use it for invalidation -- in
 a specialized cache manager.


 On the other hand, new objects are usually indexed with
 all available (and not only a few) indexes.

 While some of the indexes may not be able to determine
 a senseful value for the document, the standard indexes
 have problems to handle this properly ("ManagableIndex"es can)
 and the API does not propagate the information.



-- 
Dieter
___
Zope-Dev maillist  -  Zope-Dev@zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )