Articles by Tag #index

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

Database index tutorial with MYSQL

1. What Is an Index? An index in a database is like the index in a book — it helps you...

Learn More 1 0Oct 17

Amazon DocumentDB New Query Planner (version 2)

In September 2025, AWS announced it will contribute to the open-source DocumentDB extension for...

Learn More 1 1Nov 14

Why Java hashmap uses null key and stores it in 0th index?

In Java's HashMap, a null key is stored in bucket 0 because the hashCode() method cannot be invoked...

Learn More 1 0Nov 27

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

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 10 0Feb 27

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

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

$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

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

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

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

$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

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

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

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

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

Introduction to US Stock Market

Stock Market New York Stock Exchange (NYSE): The largest stock exchange in the...

Learn More 6 0Sep 16

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

Playing With Search: 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

Postgres: Index Scans

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

Learn More 0 1Apr 6

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

[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

.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

"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

PostgreSQL partitioning with desired index names

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

Learn More 1 0Feb 1

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

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