Speed will depend on your use case. PostgreSQL is faster while handling huge data sets, complex queries, and read-write operations. On the other hand, MySQL is faster with read-only use cases.
MySQL Vs. MariaDB Vs. PostgreSQL - Which one would you pick for JSON data?
I've been using MariaDB for all my Laravel projects; and it works really awesome. For one of my latest projects, I need to store large JSON objects in my database. I'm making use of the Laravel Migrations $table->json('data') to build my JSON data column.
I'm pretty new to this data-type; and while reading about it, I found several blog posts and QnA that recommend using PostgreSQL over MySQL (MariaDB).
One cool feature I'd need is to be able to perform searches within the stored JSON data. I plan to make use of Eloquent to perform all my queries; and would switch over to DB::raw() only when absolutely required.
The amount of records I'm starting with is close to a million. Can someone help me make a decision?
Please or to participate in this conversation.