https://blog.codeship.com/unleash-the-power-of-storing-json-...
https://blog.codeship.com/unleash-the-power-of-storing-json-...
https://tableplus.io/blog/2018/09/mariadb-vs-postgresql-a-qu...
> JSON support: PostgreSQL supports JSON and JSONB while MariaDB doesn’t. It supports an alias for JSON instead, which is a LONGTEXT column.
Even the proposed json column, is not indexed - postgresql jsonb is indexed and queries fast.
The postgres support is simply nicer to use and more powerful, e.g. the indexing.
But if your RDBMS is any fairly-recent version of MariaDB or MySQL, you can use JSON too.
Of the top of my head, the thing I find most griping about the MySQL syntax is you have to do
thing->>"$.key"
instead of postgres-style thing->>'key'
Whereas what I really want to be able to do is thing.key
But most of the consumers of these modern 'dynamic columns' are apps and then it all really matters less if you don't spend all your days at the sql prompt writing stuff by hand.My favorite MySQL JSON feature probably is JSON_TABLE which converts a JSON document on the fly into a table which can hen be processed using SQL features. https://dev.mysql.com/doc/refman/8.0/en/json-table-functions...
(Disclaimer: I work for Oracle's MySQL Engineering team)
There was an article on HN a couple of months ago that was comparing Mongo and PgSQL performance, and PgSQL ended up being as fast if not faster for most use cases.
The oid type is currently implemented as an unsigned four-byte integer. Therefore, it is not large enough to provide database-wide uniqueness in large databases, or even in large individual tables. So, using a user-created table's OID column as a primary key is discouraged. OIDs are best used only for references to system tables.[1]
Besides, "object-relational" only means that it supports custom data types and inheritance, and at least custom data types are still a core feature of PostgreSQL.
Exactly! My thoughts whenever I see people using nosql databases.