Results 1 to 2 of 2

Thread: Dynamic store model fields

  1. #1
    Sencha User
    Join Date
    Dec 2010
    Posts
    83

    Default Dynamic store model fields

    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?

    Thanks

  2. #2
    Sencha User
    Join Date
    Feb 2013
    Location
    California
    Posts
    11,985
    Answers
    506

    Default

    Haven't worked with mongodb myself, but here's a couple of threads that might help:
    http://www.sencha.com/forum/showthread.php?287694
    http://www.sencha.com/forum/showthread.php?273317

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •