paint-brush
An Overview of Database Indexing for Beginnersby@pragativerma
3,467 reads
3,467 reads

An Overview of Database Indexing for Beginners

by Pragati Verma7mSeptember 9th, 2022
Read on Terminal Reader
Read this story w/o Javascript

Too Long; Didn't Read

A database index allows a query to retrieve data from a database in an efficient manner. Indexing is a way to get an unordered table into an order that will maximize the efficiency when searching for a record. Indexes can be related to specific tables and consist of one or more keys. A table can have multiple indexes built from it. The database would have to search through all 17 records in the order they appear in the table, from top to bottom, one at a time, to look for all the potential instances of `company_id` as 18. This isn’t ideal and can be a problem when looking inside a database table with huge amount of data.
featured image - An Overview of Database Indexing for Beginners
Pragati Verma HackerNoon profile picture
Pragati Verma

Pragati Verma

@pragativerma

I am a Software Developer with a keen interest in tech content writing.

Learn More
LEARN MORE ABOUT @PRAGATIVERMA'S
EXPERTISE AND PLACE ON THE INTERNET.
0-item

STORY’S CREDIBILITY

Original Reporting

Original Reporting

This story contains new, firsthand information uncovered by the writer.

L O A D I N G
. . . comments & more!

About Author

Pragati Verma HackerNoon profile picture
Pragati Verma@pragativerma
I am a Software Developer with a keen interest in tech content writing.

TOPICS

Languages

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite