yb
YugabyteDB Docs
Join us on
Star us on
Get Started
Documentation
Documentation
Docs Home
Quick Start
Explore
Develop
Migrate
Secure
Launch and Manage
Benchmark
Integrations
Reference
Contribute
View all products
YugabyteDB Anywhere
YugabyteDB Managed
FAQ
Release Notes
YugabyteDB documentation
Explore
Indexes and Constraints
Indexes and Constraints
Explore Indexes and Constraints in YSQL and YCQL
Releases
v2.15 (Preview)
v2.12 (Stable)
v2.8
v2.6
v2.4
Unsupported versions
Primary keys
Explore the use of Primary keys in YSQL and YCQL with examples.
Foreign keys
Explore the use of Foreign keys associated with Primary keys in YSQL.
Secondary indexes
Explore Indexes to optimize your database performance.
Unique indexes
Explore Unique indexes in YSQL and YCQL with examples.
Partial indexes
Explore Partial indexes in YSQL and YCQL with examples.
Expression indexes
Explore Expression indexes in YSQL with examples.
Covering indexes
Explore Covering indexes in YSQL with examples.
GIN indexes
Use GIN indexes in YSQL to run efficient queries.
Other constraints
Explore CHECK and NOT NULL constraints to optimize your database performance.