Deutsch Open-Source Weblog Resources zopyx group Imprint

Python, Zope, Plone — Development and Consulting

What can we do for you?

Your contact
Andreas Jung will assist you. Please call
+49(0)70 71/79 33 76

Or use our Callback service

SQLStorage is dead - long live RDBMSStorage!

— abgelegt unter:

Archetypes-based content-types are traditionally tied to the ZODB as backend storage. It has always been hard making the content available through a RDBMS - the only solution for a long time has been SQLStorage. However the implementation and the behavior was more than flaky. Lately projects like collective.tin (Laurence Rowe) and Contentmirroring by Kapil appeared on the scene. The  major reasons for using a RDBMS backend are scalablity and efficiency: with a standard Plone/CMF installation you can create between 4-8 objects per second. Tests with a RDBMS backend have shown that creating the same objects within a database like Postgres is  slightly faster: up to 350(!) objects per second.

As a sunday-afternoon exercise I created a prototype of a new RDBMS-storage for Archetypes on top of SQLAlchemy - the preliminary name is RDBMSStorage. The database model uses table inheritance for storing the common metadata within a dublincore table. Content-type specific fields are stored in dedicated tables like document. SQLAlchemy allows us to map the Archetypes field types nicely to SQL datatypes. The code right now is only of prototype quality and for experiementing however the first results look promising.

Some stupid Archetypes behavior observed during the implementation:

  • Archetypes creates six new object instances when creating a new document through the portal factory
  • The get() method for fields like title, description or text are called up to eight times when viewing a document. That's pretty dumb and might lead to performance issues unless we use some smart caching.

http://svn.plone.org/svn/collective/zopyx.plone.archetypes_on_rdbms/trunk/

Artikelaktionen

Testimonial

The university of Bonn is currently migrating its central website and institute websites to Plone

Andreas Jung worked as a consultant for the University of Bonn during the conception phase and advised us competent and very efficient. He identified the requirements of the institutes and created a concept for building modular websites for institutes at the University of Bonn.

Martin Ragg, IT Project manager, University of Bonn

 
ZOPYX Ltd., Charlottenstr. 37/1, D-72070 Tübingen, Germany
Phone +49(0)70 71/79 33 76, Fax +49(0)70 71/7 93 68 40, Email: info@zopyx.com
Contact form Callback service Print page