Posted on 27th April 2024
Syntax:
REINDEX { INDEX | TABLE | DATABASE | SYSTEM } name
Index: recreate a specified index
Table: recreate all index of a table
Database: all indexes of a particular database have to recreate.
System: all indexes of a current database have to recreate.
For example:
REINDEX INDEX my_index;
The above syntax used to rebuild the index (my_index)
REINDEX TABLE my_table;
The above syntax used to rebuild all the indexes of a particular table(my_table)
STILL GOT QUERIES?