On Sun, 16 May 1999, Michel Pelletier wrote:
It apears that Howard Shaw helped you with the techhnical details here, so I just have a bit of a warning you might want to avoid. If your counter is incrimented on each page access, then your object database will grow on each hit. Because the object database stores revisions of objects, each new inciment of the property will append a new revision on the ned of the database. For a million hit per day website, this means a million new objects will be added to the database. Definately performance prohibitive.
If you want to make a Counter product, I would suggest writing part of it in python, and making the actual hit count a volitle object. This would require some caching logic (to preserve the hit count across system resets) and some other magic. I believe someone a month or so ago someone allready jumped through most of these hoops. I would suggest either using/modifing their code or working from it to write your own.
A simple solution is to write an external method that sores the counter value in a regular file, lets say in the Zope/var directory. pavlos