kapilratnani / django_hana

[Discontinued] Django db backend for SAP HANA
BSD 3-Clause "New" or "Revised" License
20 stars 13 forks source link

control default model table storage type from database configuration #22

Closed lanzz closed 10 years ago

lanzz commented 10 years ago

At the moment, default model table storage type is hardcoded to ROW in creation.py line 82 and each model using a different store needs to be decorated. This patch introduces a new database configuration key DEFAULT_MODEL_STORE, which can be used to specify a database-wide default store for all models. Moreover, the default default model store (heh) is changed to COLUMN, as per this recommendation: http://scn.sap.com/community/hana-in-memory/blog/2013/12/29/6-golden-rules-for-new-sap-hana-developers