Re: [Zope-dev] DB connection pooling

2001-03-03 Thread Dieter Maurer
Erik Stephens writes: I've been working on an implementation of connection pooling for the MySQLDA. Basically, Zope connections will be pooled by connection string to reduce the number of unecessary connections to MySQL. Isn't that trivial with Zope (thanks to acquisition)? Just

Re: [Zope-dev] ZCatalog hackery

2001-03-03 Thread R. David Murray
I've got an analogous but different problem with ZCatalog udpates. I'd like to ask for ideas about the best way to handle this. I've got a ZPatterns based ap that is pulling data from a postgresql database. But associated with the object created out of the database are signficant chunks of

Re: [Zope-dev] ZCatalog hackery

2001-03-03 Thread Morten W. Petersen
[Chris McDonough] | Note that the algoritm is simple - for each index, compare the what exists | in the index to what is to be put in. If they're the same, do nothing. If | they're different, reindex. I wasn't able to understand completely from | your description whether the object method

Re: [Zope-dev] ZCatalog hackery

2001-03-03 Thread R. David Murray
On Sat, 3 Mar 2001, Chris McDonough wrote: Has the physical path of the object changed? If not, the newer (2.3.0 + ) Nope. catalog stuff should be smart enough to figure out whether anything inside the object has changed during catalog_object. If nothing has changed, none of the indexes

Re: [Zope-dev] ZCatalog hackery

2001-03-03 Thread Chris McDonough
Cool. Now, in the examples I've seen for interfacing ZCatalog and ZPatterns, the 'object updated' code does an unindex of the object and then an index of the object. I copied that pattern for my "the tables have been updated, reindex everything" code. So what I should do instead is just do

Re: [Zope-dev] ZCatalog hackery

2001-03-03 Thread Chris McDonough
Will the new data be 'made ready for indexing' before it is compared to the existing data? That is, will ZCatalog have to compute the data in some way before it compares it to what is already stored? Yes. I'm wondering because it would be significant overhead to 'make a data field of

[Zope-dev] Site Access Rewrite Rule documentation?

2001-03-03 Thread R. David Murray
Is there any real documentation for Site Access rewrite rules anywhere? There isn't anything in the help system of 2.3.1b1, and the docs under SiteAccess on zope.org have a couple of examples but no technical explanation of how the parts of the example interact with Zope. My goal is pretty

Re: [Zope-dev] Site Access Rewrite Rule documentation?

2001-03-03 Thread Evan Simpson
From: "R. David Murray " [EMAIL PROTECTED] So, clearly I don't have a clue what stack is supposed to contain or what changing it does. Can anyone point me to docs or give me some help? You can also tell me, "that's stupid, just solve your problem this way"... You've got it almost right,