Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagesql
db_demo=# select * from public.item;
 key |                                                                                                                      document                                                                                              |                                   properties                    |        text
-----+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------+--------------------
 1   | {"name": "DocumentExample", "elements": {"additionalProp1": {"name": "ElementExample 1", "tags": ["tag1"]}, "additionalProp2": {"name": "ElementExample 2", "tags": ["tag2"]}, "additionalProp3": {"name": "ElementExample 3", "tags": ["tag3"]}}} | {"additionalProp1": "Val 10", "additionalProp2": "11", "additionalProp3": "12"} | This is an example
(1 row)


Table of comparison

TypeDataStoreValidationQueryIndex
longtextMariaDBSELECTYesNo
longtextPostgreSQLNoNoNo
jsonPostgreSQLINSERT / UPDATEYesNo
jsonbPostgreSQLINSERT / UPDATEYesYes


Conclusion

My suggestion as shown below is three options: 

...