Indexing
What is a Index in Database
INDEX : idx_table_name_column_name
UNIQUE INDEX : idx_u_table_name_column_nameSyntax
create index index_name on table_name (col1,col2,.....)
-- create index for only unique values in column
create unique index index_name on table_name (col1,col2,.....)
-- more descriptive method
create index index_name on table_name [USING method]
(
column_name [ASC|DESC] [NULLS {FIRST | LAST}],
...
);Get All Indexes
Size of Indexes
Stats about indexes
Drop Index
Vacuum analyze
Rebuilding Indexes
Last updated