AdvancedPerformance & Indexes
Create Index Concurrently
The query
SQL
CREATE INDEX CONCURRENTLY idx_orders_date
ON orders (order_date);Note
“Builds the index without locking the table against writes. Takes longer but is mandatory for production environments with zero downtime.