Skip to Content
Getting Started with CockroachDB
book

Getting Started with CockroachDB

by Kishen Das Kondabagilu Rajanna
March 2022
Intermediate to advanced
246 pages
4h 36m
English
Packt Publishing
Content preview from Getting Started with CockroachDB

Chapter 6: How Indexes Work in CockroachDB

In Chapter 5, Fault Tolerance and Auto-Rebalancing, we learned about fault-tolerance and auto-recovery strategies in CockroachDB. In this chapter, we will learn everything about indexes, what they are, and how they improve query times.

Although indexes help improve the read performance, a wrong index can slow down the queries, including the writes, and take up more storage space. So, it is important to identify the query pattern and create appropriate indexes.

The following topics will be covered in this chapter:

  • Introduction to indexes
  • Different types of indexes
  • Best practices while using indexes

Technical requirements

We will try creating various types of indexes in this chapter which would require ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Getting Started with Mule Cloud Connect

Getting Started with Mule Cloud Connect

Ryan Carter
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz

Publisher Resources

ISBN: 9781800560659Supplemental Content