View Full Version : Dynamic store model fields

3 Jul 2014, 3:43 AM
Hello Everyone,
I have recently switched form using mysql as a database to mongodb. In sql, as you all know, you have fixed columns that work nicely pairing with Sencha's store models. But, mongodb allows for more flexible data sets. For instance, lets say you were creating an inventory db. You have some fields that all data sets would have, like id, description and so on. But, one data set could have only one included photo, others could have an unknown number of photos referenced for the item.

Is there a way to have a more dynamic store model that would take advantage of mongo's document structure? What is the best approach to handle unknown data sets in Sencha?


Gary Schlosberg
13 Jul 2014, 3:09 PM
Haven't worked with mongodb myself, but here's a couple of threads that might help: