Cassandra Documentation

Version:

You are viewing the documentation for a prerelease version.

Secondary indexes (2i) overview

Secondary indexes (2i) allow you create one or multiple secondary indexes on the same database table, with each 2i based on any column.

Exception: There is no need to define an 2i based on a single-column partition key.

Concepts

How 2i works and when to use this type of indexing.

Working with 2i

Create, check, alter, drop, and query secondary indexes (2i).

2i operations

Rebuilding and maintaining 2i indexes.

Reference: CREATE INDEX, DROP INDEX