On Stack Overflow, the most frequent question for PostgreSQL is: "Select first row in each GROUP BY...
MongoDB uses the WiredTiger storage engine, which implements Multi‑Version Concurrency Control (MVCC)...
Previously, I demonstrated MongoDB text search scoring with a simple example, creating a dynamic...
MongoDB search indexes provide full‑text search capabilities directly within MongoDB, allowing...
Suppose you need to merge two sources of data—both JSON documents containing nested arrays. This was...
Previously, I discussed how MongoDB keeps track of whether indexed fields contain arrays. This...
WiredTiger is MongoDB’s default storage engine, but what really occurs behind the scenes when...
There have been jokes that have contributed to persistent myths about MongoDB's durability. The...
MongoDB is the leading database for document data modeling, with its Atlas service available on AWS,...
In MongoDB, when you update a field to the same value it already holds, the database optimizes the...
In my previous post Embedding Into JSONB Still Feels Like a JOIN for Large Documents, I examined the...
Think PostgreSQL with JSONB can replace a document database? It’s a tempting idea: Embed your related...
Arrays in MongoDB are ordered lists of values, and querying them can be confusing because a field...
Until recently, Oracle Database offered very limited options for creating inverted indexes, primarily...
Another day, another myth. Someone on Medium claims PostgreSQL offers as much "schema flexibility" as...
PostgreSQL 18 (currently in beta) introduces a UUID version 7 generation function that features a...
Working with nested data in MongoDB simplifies mapping between application objects and database...
You can understand how MongoDB stores documents internally with simple queries that rely on the...
A benchmark sponsored by EDB, a PostgreSQL company, in 2019 contributed to the myth that MongoDB...
MongoDB is a general-purpose database that offers more than just a JSON datastore. It is recognized...
MongoDB guarantees consistent and durable write operations through write-ahead logging, which...
Concurrency control in databases has two main modes for handling conflicts. Traditionally, these are...
MongoDB sits at the crossroads between SQL, where developers can write queries on a logical model...
A business transaction ideally involves a single roundtrip to the database. MongoDB allows a single...
If you test $isArray: [42] in MongoDB, it returns false and that's the right answer. If you test...
In a previous post about No-gap sequence in PostgreSQL and YugabyteDB, I mentioned that sequences in...
In SQL databases, we sometimes encounter an Entity-Attribute-Value (EAV) model to work around the...
MongoDB’s flexible schema allows each document within a collection to have a unique structure, a...
Introducing "Playing with Search" Series Erik Hatcher ・...
In the previous post, I used strace to display all calls to write and sync to disk from any MongoDB...