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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -