Articles by Tag #index

Browse our collection of articles on various topics related to IT technologies. Dive in and explore something new!

B-Tree for Equality, Sort, Range (indexing strategies in MongoDB)

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

Learn More 11 2May 23

Comparing Execution Plans: MongoDB vs. Compatible APIs

MongoDB is the standard API for document databases, and some cloud providers have created services...

Learn More 10 0Mar 9

Document Expiration with TTL Indexes in MongoDB

Without TTL (manual delete job) With TTL (expireAfterSeconds index) Comparison (server metrics and...

Learn More 9 9Feb 8

MongoDB TTL and Disk Storage

In a previous blog post, I explained how MongoDB TTL indexes work and their optimization to avoid...

Learn More 9 4Mar 24

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

Order-preserving or-expansion in MongoDB and $in:[,,] treated as a range skip scan, or exploded to an equality for the ESR rule

I concluded the previous post with a question. We have explored how queries with range and equality...

Learn More 9 0Feb 27

$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 8 1May 28

ESR (Equality, Sort, Range) rule applied to YugabyteDB and PostgreSQL indexes

TL;DR: To make developers' lives easier, MongoDB has documented a simple rule for creating an...

Learn More 7 1Jan 26

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 7 0Apr 27

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 5 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 5 0May 22

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 4 0May 27

$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

MongoDB With Search Indexes Queried as Kimball's Star Schema With Facts and Dimensions

Export From SQL to CSV Import to MongoDB Indexing the Star Schema Querying the Star Schema - Star...

Learn More 3 0Apr 13

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

SQL Performance: A Deep Dive into Indexing with examples

Most of the times we create a single-column index for join columns, but in practical I experienced...

Learn More 2 1Oct 2 '24

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 2 0May 24

.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...

Learn More 1 0Jul 22

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

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

PostgreSQL partitioning with desired index names

Introduction A while back, Hetti wrote an article titled Indexing Partitioned Table...

Learn More 1 0Feb 1

Postgres: Index Scans

Using an index to help improve query performance is common practice. An index is a structure...

Learn More 0 0Apr 6

"The API Is Slow, Fix It!" – What I Learned About `EXPLAIN` and Indexing

During a technical interview, the situation was something like this: “Your manager tells you: the...

Learn More 0 0May 29

index in Python

Buy Me a Coffee☕ *Memos for a string and byte string(bytes and bytearray) functions: My post...

Learn More 0 0Aug 3

Why Doesn't Oracle Multi-Value Index Optimize .sort() Like MongoDB Does With its Multi-Key Index?

Until recently, Oracle Database offered very limited options for creating inverted indexes, primarily...

Learn More 0 0Aug 15

Tuple in Python (2)

Buy Me a Coffee☕ *Memos: My post explains a tuple. My post explains the tuple with slicing and...

Learn More 0 0Jun 1

[Boost]

B-Tree for Equality, Sort, Range Franck Pachot ・ May 23 ...

Learn More 0 0May 24

Avoiding the Pitfalls of Duplicate Indexes in MySQL

Indexes are fundamental for MySQL optimization, making data retrieval faster and more efficient....

Learn More 0 0Dec 30 '24

Find Index of Item in Python List

Learn how to find an item's index in a Python list using list.index(), enumerate, safe wrappers, and performance tips under 160 chars.

Learn More 0 0Jul 22

Which Clause(s) Matched?

This article is part of a series. Please see the complete series above. Here's our playground of the...

Learn More 0 0Jul 21