Re: [ZIZope] override del navigatore

Yuri <[email protected]> Sat, 02 Feb 2008 12:53:06 +0100
Newsgroups gmane.comp.web.zope.italian
Message-ID <[email protected]>
Fabrizio Reale wrote:
>
> Si... confermo, svegliare gli oggetti per cose così banali è un MALE :)
> (lo scrivo solo per i novizi, proprio ieri un amico mi diceva che Plone era 
> lento a mostrare gli 8700 oggetti che aveva in una cartella con una bella 
> vista che li richiamava tutti)
>   
http://www.upfrontsystems.co.za/Members/roche/where-im-calling-from/zodb-benchmarks

"Note that there is a undocumented feature in cPickle that I added  
years ago to deal with this issue but never got around to pursuing.   
Maybe someone else would be able to spend the time to try it out and  
report back.

If you set inst_persistent_id, rather than persistent_id, on a  
pickler, then the hook will only be called for instances.  This  
should eliminate that vast majority of the calls."


tradotto, 50% in più di performance.

In Plone, però, conclude:

"For an application like Plone an insertion rate of 250 objects per 
second results in terrible performance if you consider that storing a 
single document instance leads to close to 120 objects being inserted in 
a single transaction. And this explains why you can hardly insert more 
than 2 or 3 documents per second if you are uploading them into a Plone 
site. Separating data into separate BTrees or files will not solve the 
problem either since catalog indexes can easily contain 10 million or 
more objects in large deployments. If the lookup speed on a large index 
is 20 milliseconds and 1 second is the maximum response time you can 
afford, realise that you can only do 5 lookups in that second. You see 
the problem?"