|< < 42 > >|

MongoDB Data Model

Dynamic Schema

Problems with dynamic schemas

Queries are application code too

  • Queries also have to deal with both versions of the schema.

  • Query optimization gets difficult:
    • Is there an index on name? Which version?
    • Query needs ORs for the two versions, complicating query optimization.

|< < 42 > >|