Autopilot Indexing uses the following syntax:
mysql> CALL sys.autopilot_index_advisor ([options]);
options: {
JSON_OBJECT('key','value'[,'key','value'] ...)
'key','value':
['output',{'normal'|'silent'|'help'}]
['target_schema',JSON_ARRAY({'schema_name'[,'schema_name']}]
}
Autopilot Indexing options
are
specified as key-value pairs in JSON
format. Options include:
-
output
: Defines how Autopilot Indexing produces output. Permitted values are:normal
: The default. Produces summarized output and sends it tostdout
and to theautopilot_index_advisor_report
table. See Section 2.8.1.5, “Autopilot Index Advisor Report Table”.silent
: Sends output to theautopilot_index_advisor_report
table only. See Section 2.8.1.5, “Autopilot Index Advisor Report Table”. Thesilent
output type is useful if human-readable output is not required; when the output is consumed by a script, for example.help
: Displays Autopilot Indexing command-line help. See Section 2.8.1.4, “Autopilot Indexing Command-line Help”.
target_schema
: Defines one or more schemas for Advisor to analyze. The list is specified as aJSON
array. If a target schema is not specified, Advisor analyzes all user defined schemas. When a target schema is specified, Advisor generates recommendations for tables belonging to the target schema. For the most accurate recommendations, specify one schema at a time. Only run Advisor on multiple schemas if the queries access tables in multiple schemas.