google app engine - Expando Model in Django -


Is it possible to implement the 'Exposure' model in the Django, like a Google App Engine? I got a degena app called Digengo-Extension on Gitobb but it is still in the early stages.

This is possible, but it will be a havoc of the epic proportion. GAE uses a different database design that is known as a column-based database, and Django ORM is designed to link to the relational database. Since technically everything in GAE is stored in a very large table with a schema (hence you do not have syncdb for GAE applications), it is easy to add arbitrary area with relational database, Where each table stores one type of data (usually) and a certain schema, arbitrary areas are not very easy.

A possible The way you can apply it is to create a new model or table for the properties that are for a table name, object ID, and crushed data. Stores a textfield, and then all the extension models are derived from a subclass which overrides __cert __ and __getattr __ this table Will automatically create a new row in However, there are some big problems with it:

  • First of all, this is a cheap hack and contrary to the principles of relational database. Second, it is not possible that the areas of these expansions may be asked without even more hacks, and even this can be very slow.

My recommendation is to find a way to design your database structure, so you do not need the extension model.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -