Re: [Zope-dev] Proposal: Improving ZSQL Methods

2002-10-17 Thread Adrian Hungate
Hmm...

(a) Is a great idea
(b) How would this work in practice?

Adrian...

--
Adrian Hungate
EMail: [EMAIL PROTECTED]
Web: http://www.haqa.co.uk

- Original Message -
From: Andy McKay [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 17, 2002 11:07 PM
Subject: [Zope-dev] Proposal: Improving ZSQL Methods


 I've put up a proposal I'd like to put into 2.6.1 or 2.7, whichever is
next.

 Summary: Change ZSQLMethods to allow a user to a) change the database
 connection without changing the object and b) use standard cache
managers.

 http://dev.zope.org/Wikis/DevSite/Proposals/ZsqlMethodImprovements

 Any comments or ideas welcome.

 Cheers.
 --
   Andy McKay
   www.agmweb.ca



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



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



Re: [Zope-dev] Proposal: Improving ZSQL Methods

2002-10-17 Thread Andy McKay
 (b) How would this work in practice?

Make a RAM Cache Manager, and then assign the ZSQL Method to cache in that
cache manager, just like you would any other object. The results are then
cached according to the database connection and the query in the RAM Cache
Manager.

It means we have a much more flexible and powerful caching mechanism
available that is not thread specific.
--
  Andy McKay
  www.agmweb.ca



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