I have a folder with greater than 5000 ZClass instances in it. It takes > 5mins to do an objectValues for every object in the folder - is there a higher perfomance call I could make? -Brett
Brett Carter wrote:
I have a folder with greater than 5000 ZClass instances in it. It takes > 5mins to do an objectValues for every object in the folder - is there a higher perfomance call I could make? -Brett
use a catalog. (which only help if you want a filtered set or a schema attrs of the object) beefing up your memory (assuming you want zope to use alot), could also help, assuming these objects are accessed frequently enough to stay in the object cache. kapil
Brett Carter wrote:
I have a folder with greater than 5000 ZClass instances in it. It takes > 5mins to do an objectValues for every object in the folder - is there a higher perfomance call I could make? -Brett
Standard folder performance degrades pretty quickly once you get a lot of objects in it. There are two solutions to this: Subdivide your objects into multiple folders. Use a BTreeFolder which should be much faster. You can download the BTreeFolder product here: http://www.zope.org/Members/hathawsh/BTreeFolder/ hth, Casey Duncan
Id recommend all the above but just for reference "objectIds" is faster than "objectValues". -- Andy McKay, Developer. ActiveState. ----- Original Message ----- From: "Casey Duncan" <cduncan@kaivo.com> To: "Brett Carter" <brett@kavi.com>; <zope-dev@zope.org> Sent: Tuesday, November 28, 2000 7:58 AM Subject: Re: [Zope-dev] objectValues performance
Brett Carter wrote:
I have a folder with greater than 5000 ZClass instances in it. It takes > 5mins to do an objectValues for every object in the folder - is there a higher perfomance call I could make? -Brett
Standard folder performance degrades pretty quickly once you get a lot of objects in it. There are two solutions to this:
Subdivide your objects into multiple folders. Use a BTreeFolder which should be much faster.
You can download the BTreeFolder product here: http://www.zope.org/Members/hathawsh/BTreeFolder/
hth, Casey Duncan
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org 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 )
participants (4)
-
Andy McKay -
Brett Carter -
Casey Duncan -
Ender