Skip to content

Monitoring

Indexing Progress

You can check the indexing progress by querying the pg_stat_progress_create_index view.

For more detail about the view, please refer to the PostgreSQL document

SQL
SELECT phase, round(100.0 * blocks_done / nullif(blocks_total, 0), 1) AS "%" FROM pg_stat_progress_create_index;

Phases

The phase column in pg_stat_progress_create_index view indicates the current processing phase of index creation.

There are five steps in the index construction process of VectorChord. The phase of each step are as follows:

StepMessageDescriptionExecution speed
1initializingStart building indexExtremely fast
2initializing index, by internal buildThis step is only for internal build. It involves performing K-means clustering to obtain centroidsSlow
2initializing index, by external buildThis step is only for external build. It loads centroids from a specified tableFast
3initializing indexInitialize the data structure and storage of the indexFast
4inserting tuples from table to indexAssign all vectors to their corresponding cluster centersSlow
5compacting tuples in indexOptimize the structure of the vector index to enhance performanceMedium

INFO

The blocks_done and blocks_total columns indicate the progress of the 4th step inserting tuples from table to index.