mysql - Optimizing queries on a relational DB where entities are full json objects and with another table with entity-value design -


in database, entities stored full json formatted objects. there table properties of entities. each property of entity stored own row. in sense, second table holds properties of json entity.

i'm aware terrible design violating normal forms , anti-pattern called entity-attribute-value.

for simple query, must make number of joins , terrible performance.

i wonder if there way optimizing queries reducing number of joins?

solutions out of question since there lots of constraints:

  • normalizing tables
  • migrating nosql engine

by way, database engine mysql 5.6.21. if update mysql db version of mysql, can create queries on json objects directly?

thank in advance.

mysql 5.7.8 supports json datatype. without more details, it's hard see if - faster eav queries have do.


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -