107 articles

📰 Dev.to · Franck Pachot

Articles from Dev.to · Franck Pachot · 107 articles · Updated every 3 hours · View all reads

All ⚡ AI Lessons (10812) ArXiv cs.AIDev.to · FORUM WEBDev.to AIForbes InnovationOpenAI NewsHugging Face Blog
Combine Two JSON Collections with Nested Arrays: MongoDB and PostgreSQL Aggregations
Dev.to · Franck Pachot 6mo ago
Combine Two JSON Collections with Nested Arrays: MongoDB and PostgreSQL Aggregations
Suppose you need to merge two sources of data—both JSON documents containing nested arrays. This was...
MongoDB Multikey Indexes and Index Bound Optimization
Dev.to · Franck Pachot 6mo ago
MongoDB Multikey Indexes and Index Bound Optimization
Previously, I discussed how MongoDB keeps track of whether indexed fields contain arrays. This...
MongoDB Internals: How Collections and Indexes Are Stored in WiredTiger
Dev.to · Franck Pachot 7mo ago
MongoDB Internals: How Collections and Indexes Are Stored in WiredTiger
WiredTiger is MongoDB’s default storage engine, but what really occurs behind the scenes when...
Resilience of MongoDB's WiredTiger Storage Engine to Disk Failure Compared to PostgreSQL and Oracle
Dev.to · Franck Pachot 7mo ago
Resilience of MongoDB's WiredTiger Storage Engine to Disk Failure Compared to PostgreSQL and Oracle
There have been jokes that have contributed to persistent myths about MongoDB's durability. The...
DocumentDB: Comparing Emulation Internals with MongoDB
Dev.to · Franck Pachot 7mo ago
DocumentDB: Comparing Emulation Internals with MongoDB
MongoDB is the leading database for document data modeling, with its Atlas service available on AWS,...
Updates to the Same Value: MongoDB Optimization
Dev.to · Franck Pachot 7mo ago
Updates to the Same Value: MongoDB Optimization
In MongoDB, when you update a field to the same value it already holds, the database optimizes the...
Embedding Into JSONB Still Feels Like a JOIN for Large Documents
Dev.to · Franck Pachot 7mo ago
Embedding Into JSONB Still Feels Like a JOIN for Large Documents
Think PostgreSQL with JSONB can replace a document database? It’s a tempting idea: Embed your related...
Does PostgreSQL support as much "schema flexibility" as MongoDB? Not for indexing!
Dev.to · Franck Pachot 8mo ago
Does PostgreSQL support as much "schema flexibility" as MongoDB? Not for indexing!
Another day, another myth. Someone on Medium claims PostgreSQL offers as much "schema flexibility" as...
MongoDB indexing internals: .showRecordId() and .hint({$natural:1})
Dev.to · Franck Pachot 8mo ago
MongoDB indexing internals: .showRecordId() and .hint({$natural:1})
You can understand how MongoDB stores documents internally with simple queries that rely on the...
Transaction performance 👉🏻 retry with backoff
Dev.to · Franck Pachot 8mo ago
Transaction performance 👉🏻 retry with backoff
A benchmark sponsored by EDB, a PostgreSQL company, in 2019 contributed to the myth that MongoDB...
Lock-Free Wait-on-Conflict and Fail-on-Conflict in MongoDB
Dev.to · Franck Pachot 8mo ago
Lock-Free Wait-on-Conflict and Fail-on-Conflict in MongoDB
Concurrency control in databases has two main modes for handling conflicts. Traditionally, these are...
.hint() in MongoDB is different that SQL optimizer hints: they force indexes
Dev.to · Franck Pachot 8mo ago
.hint() in MongoDB is different that SQL optimizer hints: they force indexes
MongoDB sits at the crossroads between SQL, where developers can write queries on a logical model...
Database latency with PostgreSQL and MongoDB: it's the data model that makes it fast
Dev.to · Franck Pachot 8mo ago
Database latency with PostgreSQL and MongoDB: it's the data model that makes it fast
A business transaction ideally involves a single roundtrip to the database. MongoDB allows a single...
Sequences in MongoDB
Dev.to · Franck Pachot 8mo ago
Sequences in MongoDB
In a previous post about No-gap sequence in PostgreSQL and YugabyteDB, I mentioned that sequences in...
ALTER TABLE ... ADD COLUMN
Dev.to · Franck Pachot 9mo ago
ALTER TABLE ... ADD COLUMN
MongoDB’s flexible schema allows each document within a collection to have a unique structure, a...
Strong consistency 👉🏻 MongoDB highly available durable writes (Replication)
Dev.to · Franck Pachot 9mo ago
Strong consistency 👉🏻 MongoDB highly available durable writes (Replication)
In the previous post, I used strace to display all calls to write and sync to disk from any MongoDB...
Flush to disk on commit 👉🏻 MongoDB durable writes (ACID)
Dev.to · Franck Pachot 9mo ago
Flush to disk on commit 👉🏻 MongoDB durable writes (ACID)
A Twitter (𝕏) thread was filled with misconceptions about MongoDB, spreading fear, uncertainty, and...
No pre-filtering in pgvector means reduced ANN recall ( impact on Vector Search accuracy)
Dev.to · Franck Pachot 9mo ago
No pre-filtering in pgvector means reduced ANN recall ( impact on Vector Search accuracy)
AI applications are expanding rapidly, and PostgreSQL is a popular choice among relational databases....
faster $lookup after $group in MongoDB aggregation pipeline (Performance Optimization Tips)
Dev.to · Franck Pachot 9mo ago
faster $lookup after $group in MongoDB aggregation pipeline (Performance Optimization Tips)
In the previous post One million $lookup challenge I said that $lookup is efficient at the end of an...
One million $lookup challenge (performance comparison)
Dev.to · Franck Pachot 9mo ago
One million $lookup challenge (performance comparison)
I you have read my previous post $lookup: more than just a SQL join, you understand that $lookup is...