optimizeLabelLinks

The "optimizeLabelLinks" action returns immediately after launching a background process that checks each record of the label_records table to verify that each specified table, record, and label exists. If not, the process deletes the link. If many records are deleted, the process optimizes the table and its indexes.

It is important to run this process periodically because deleting tables and records with linked labels will leave records behind in the label_records table.

 

Request examples

Minimal

This example starts the optimization background process.

{
  "action":    "optimizeLabelLinks",
  "params":    {},
  "authToken": "replaceWithAuthTokenFromCreateSession"
}