Free Ebook cover Indexing 101: How Databases Find Data Fast

Free ebook Indexing 101: How Databases Find Data Fast

New

List icon for ebook

9 chapters

Free ebook on database indexing: learn B-trees, composite and covering indexes, selectivity, and workload-based performance tuning.

Free ebook content

About the free ebook

Indexing 101: How Databases Find Data Fast

This free ebook explains how database indexes reduce data-access costs and help queries return results efficiently. Learn how databases choose between scanning tables and following index access paths, then connect those choices to practical query design.

Understand the mechanics behind fast lookups

Explore B-tree indexes, the common structure used for ordered searches, range filters, sorting, and joins. The ebook clarifies how lookup paths work and why index usefulness depends on selectivity, cardinality, data distribution, and the number of rows a query must read.

Design indexes for real SQL workloads

Move beyond adding an index to every column. Learn how composite indexes depend on column order, how covering indexes can avoid extra table lookups, and when included columns can improve read performance. Practical guidance helps you match index definitions to filtering, joining, ordering, and projection patterns.

Balance read speed with operational cost

Indexes require storage and maintenance. This ebook examines their effect on inserts, updates, deletes, locking, and concurrency, helping you recognize when additional indexes create more cost than value.

Build better indexing decisions

  • Identify queries that benefit from an index.
  • Spot redundant and overlapping index patterns.
  • Recognize query patterns that can prevent index use.
  • Prioritize indexes using actual workload evidence.

Use these principles to interpret database performance issues, refine schema design, and make deliberate indexing choices instead of relying on guesswork.

How does a B-tree index speed up database queries?

It organizes key values in a balanced tree, allowing the database to navigate to matching rows without scanning the entire table.

Why does column order matter in a composite index?

The leading columns determine which filter and sort patterns can efficiently use the index.

When can an index make database performance worse?

Extra indexes increase storage and add maintenance work to inserts, updates, and deletes, especially when they are redundant or rarely used.

This ebook includes:

Icon for learning via the audio course

9 content chapters

Icon for the digital course completion certificate

Digital certificate of course completion (Free)

Icon for exercises to practice what you've learned

Exercises to train your knowledge

Icon for courses that are 100% free from start to finish

100% free, from content to certificate

Ready to get started?

In the app you will also find...

Icon representing technology and business courses

Over 5,000 free courses

Programming, English, Digital Marketing and much more! Learn whatever you want, for free.

Calendar icon with target representing study planning

Study plan with AI

Our app's Artificial Intelligence can create a study schedule for the course you choose.

Professional icon representing career and business

From zero to professional success

Improve your resume with our free Certificate and then use our Artificial Intelligence to find your dream job.

You can also use the QR Code or the links below.

Download the App now to have access to + 5000 free courses, exercises, certificates and lots of content without paying anything!

  • 100% free online courses from start to finish

    Thousands of online courses in video, ebooks and audiobooks.

  • More than 60 thousand free exercises

    To test your knowledge during online courses

  • Valid free Digital Certificate with QR Code

    Generated directly from your cell phone's photo gallery and sent to your email

Cursa app on the ebook screen, the video course screen and the course exercises screen, plus the course completion certificate

Other free courses