Storing Templates and Object-Oriented vs Relational Databases

Posted by syrion on Stack Overflow See other posts from Stack Overflow or by syrion
Published on 2010-12-21T19:51:01Z Indexed on 2010/12/21 23:53 UTC
Read the original article Hit count: 295

I'm designing some custom blog software, and have run into a conundrum regarding database design. The software requires that there be multiple content types, each of which will require different entry forms and presentation templates.

My initial instinct is to create these content types as objects, then serialize them and store them in the database as JSON or YAML, with the entry forms and templates as simple strings attached to the "contentTypes" table. This seems cumbersome, however. Are there established best practices for dealing with this design? Is this a use case where I should consider an object database?

If I should be using an object database, which should I consider? I am currently working in Python and would prefer a capable Python library, but can move to Java if need be.

© Stack Overflow or respective owner

Related posts about python

Related posts about web-development