Franck Pachot

Franck Pachot @franckpachot

About: 🥑 Developer Advocate at 🍃 MongoDB, 🔶 AWS Data Hero, 🐘 PostgreSQL fan,▝▞ YugabyteDB expert, 🅾️ Oracle Certified Master, and 💚 loving all databases 🛢️

Location:
Lausanne, Switzerland
Joined:
Nov 12, 2018

Franck Pachot
articles - 250 total

No pre-filtering in pgvector means reduced ANN recall

AI applications are expanding rapidly, and PostgreSQL is a popular choice among relational databases....

Learn More 0 0Jun 24

faster $lookup after $group in MongoDB aggregation pipeline

In the previous post One million $lookup challenge I said that $lookup is efficient at the end of an...

Learn More 1 0Jun 22

One million $lookup challenge

I you have read my previous post $lookup: more than just a SQL join, you understand that $lookup is...

Learn More 6 0Jun 19

$lookup: more than just a SQL join

When transitioning from a SQL background to MongoDB, the $lookup operation in an aggregation pipeline...

Learn More 8 1Jun 17

Queries on JSON 👉🏻 compound indexes (Equality, Sort, Range)

In a blog post titled New Benchmarks Show Postgres Dominating MongoDB in Varied Workloads, EDB claims...

Learn More 1 0Jun 15

DuckDB to query MongoDB

DuckDB is a high-performance analytical database, but it is single-process, so it cannot replace an...

Learn More 1 0Jun 13

Comparison of JOINS 👉🏻 aggregation pipeline and CTEs

In a blog post titled Comparison of JOINS: MongoDB vs. PostgreSQL on EDB's site, Michael Stonebraker...

Learn More 0 0Jun 9

"Schema Later" considered harmful 👉🏻 schema validation

In a blog post titled "Schema Later" Considered Harmful on EDB's site, Michael Stonebraker...

Learn More 1 2Jun 9

Isolation Level for MongoDB Multi-Document Transactions

Many outdated or imprecise claims about transaction isolation levels in MongoDB persist. These claims...

Learn More 3 1Jun 6

JSONB DeTOASTing (read amplification)

PostgreSQL limits tuple sizes to a quarter of the block size, generally capping at 2KB. In document...

Learn More 4 1Jun 4

No HOT updates on JSONB (write amplification)

PostgreSQL's Multi-Version Concurrency Control (MVCC) works around the challenge of in-place updates...

Learn More 7 2May 31

$graphLookup (Connect By / Recursive Query)

In this series, I present various access patterns for a specific document model. These patterns are...

Learn More 4 0May 29

$elemMatch and Multi-Key Indexes

In the previous post, I used the following index on the daily views data, which is an array of...

Learn More 13 1May 28

Google Firestore with MongoDB compatibility - index limitations

In this series, I tested multiple MongoDB emulations on top of SQL databases, and all failed to be...

Learn More 3 0May 27

Sort on Array with Multi-Key Index

In the previous post, we discussed how MongoDB indexes retrieve documents ordered by a specific...

Learn More 1 0May 27

Equality with Multiple Values, Preserving Sort for Pagination

In the previous post, I've created the following index to quickly find the last videos in one...

Learn More 1 0May 26

No Index for LIKE on JSONB with Array in the Path (GIN limitation)

Here is an example where using PostgreSQL as a document database will quickly fail: indexing. Either...

Learn More 1 0May 24

B-Tree for Equality, Sort, Range

When creating an index, you don't need the full details of the queries it will serve, but the...

Learn More 11 2May 23

No Index Only Scan on JSONB Fields (even on scalar)

On reddit, a PostgreSQL user was trying to use the SQL database as a document database, with all data...

Learn More 9 1May 23

Intro to PostgreSQL with JSONB compared to MongoDB, a general purpose document database

In recent years, MongoDB and PostgreSQL have gained popularity, representing the NoSQL and SQL camps,...

Learn More 0 0May 23

Search Index for Reporting

In the first post of this series, I've imported a sample dataset, and I'll show how adding a few...

Learn More 10 0May 22

Sampling Without Index

I won't create any indexes for this post yet, but I can still filter efficiently to run a query in...

Learn More 8 0May 22

Indexing for New Use Cases Within the MongoDB Document Model (tutorial)

When designing a schema for MongoDB, it’s crucial to understand your domain access patterns. The...

Learn More 9 0May 22

HTAP Using a Star Query on MongoDB Atlas Search Index

MongoDB is used for its strength in managing online transaction processing (OLTP) with a document...

Learn More 1 0May 6

Amazon DocumentDB and multi-key indexing

In previous posts, I discussed the limitations of MongoDB emulations on databases like Oracle and...

Learn More 2 0May 5

Amazon DocumentDB != Microsoft DocumentDB extension for PostgreSQL

My next post will be about Amazon DocumentDB and how it compares to MongoDB in terms of indexing a...

Learn More 2 0May 4

Microsoft CosmosDB: RUM instead of GIN but same limitations on JSON paths

Storing documents in PostgreSQL does not transform it to a document database. Embedded documents in...

Learn More 0 0May 1

Querying embedded arrays in JSON (PostgreSQL JSONB and MongoDB documents)

When working with document-based data structures, the fields at the root can be indexed using simple...

Learn More 2 0Apr 30

PostgreSQL aborts the transactions on error

You may be surprised by this in PostgreSQL: postgres=!# commit; ROLLBACK postgres=# Enter...

Learn More 1 0Apr 28

Index Only Scan on JSON Documents in MongoDB, with covering and multi-key indexes

Storing JSON documents in a SQL database does not make it a document database. The strength of any...

Learn More 8 0Apr 27