AI applications are expanding rapidly, and PostgreSQL is a popular choice among relational databases....
In the previous post One million $lookup challenge I said that $lookup is efficient at the end of an...
I you have read my previous post $lookup: more than just a SQL join, you understand that $lookup is...
When transitioning from a SQL background to MongoDB, the $lookup operation in an aggregation pipeline...
In a blog post titled New Benchmarks Show Postgres Dominating MongoDB in Varied Workloads, EDB claims...
DuckDB is a high-performance analytical database, but it is single-process, so it cannot replace an...
In a blog post titled Comparison of JOINS: MongoDB vs. PostgreSQL on EDB's site, Michael Stonebraker...
In a blog post titled "Schema Later" Considered Harmful on EDB's site, Michael Stonebraker...
Many outdated or imprecise claims about transaction isolation levels in MongoDB persist. These claims...
PostgreSQL limits tuple sizes to a quarter of the block size, generally capping at 2KB. In document...
PostgreSQL's Multi-Version Concurrency Control (MVCC) works around the challenge of in-place updates...
In this series, I present various access patterns for a specific document model. These patterns are...
In the previous post, I used the following index on the daily views data, which is an array of...
In this series, I tested multiple MongoDB emulations on top of SQL databases, and all failed to be...
In the previous post, we discussed how MongoDB indexes retrieve documents ordered by a specific...
In the previous post, I've created the following index to quickly find the last videos in one...
Here is an example where using PostgreSQL as a document database will quickly fail: indexing. Either...
When creating an index, you don't need the full details of the queries it will serve, but the...
On reddit, a PostgreSQL user was trying to use the SQL database as a document database, with all data...
In recent years, MongoDB and PostgreSQL have gained popularity, representing the NoSQL and SQL camps,...
In the first post of this series, I've imported a sample dataset, and I'll show how adding a few...
I won't create any indexes for this post yet, but I can still filter efficiently to run a query in...
When designing a schema for MongoDB, it’s crucial to understand your domain access patterns. The...
MongoDB is used for its strength in managing online transaction processing (OLTP) with a document...
In previous posts, I discussed the limitations of MongoDB emulations on databases like Oracle and...
My next post will be about Amazon DocumentDB and how it compares to MongoDB in terms of indexing a...
Storing documents in PostgreSQL does not transform it to a document database. Embedded documents in...
When working with document-based data structures, the fields at the root can be indexed using simple...
You may be surprised by this in PostgreSQL: postgres=!# commit; ROLLBACK postgres=# Enter...
Storing JSON documents in a SQL database does not make it a document database. The strength of any...