Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit c6ae129

Browse files
committed
Update help output for the schema_unused_indexes view to not include PRIMARY indexes
1 parent a7958ef commit c6ae129

File tree

2 files changed

+19
-24
lines changed

2 files changed

+19
-24
lines changed

README.md

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -594,21 +594,16 @@ PRIMARY (key) indexes are ignored.
594594
##### Example
595595

596596
```SQL
597-
mysql> select * from schema_unused_indexes limit 10;
598-
+-------------------------+----------------------------------------+-----------------+
599-
| object_schema | object_name | index_name |
600-
+-------------------------+----------------------------------------+-----------------+
601-
| mem30_test__instruments | mysqlavailabilityadvisor$observedstate | PRIMARY |
602-
| mem30_test__test | compressme | PRIMARY |
603-
| mem30_test__test | compressmekeyblocksize | PRIMARY |
604-
| mem30_test__test | dontcompressme | PRIMARY |
605-
| mem30_test__test | round_robin_test | PRIMARY |
606-
| mem30_test__test | round_robin_test | round_robin_bin |
607-
| mem30_test__test | testprovider$dummy1 | PRIMARY |
608-
| mem30_test__test | testprovider$dummy1 | ts |
609-
| mem30_test__test | testprovider$dummy2 | PRIMARY |
610-
| mem30_test__test | testprovider$dummy2 | ts |
611-
+-------------------------+----------------------------------------+-----------------+
597+
mysql> select * from schema_unused_indexes limit 5;
598+
+--------------------+---------------------+--------------------+
599+
| object_schema | object_name | index_name |
600+
+--------------------+---------------------+--------------------+
601+
| mem30__bean_config | plists | path |
602+
| mem30__config | group_selections | name |
603+
| mem30__config | notification_groups | name |
604+
| mem30__config | user_form_defaults | FKC1AEF1F9E7EE2CFB |
605+
| mem30__enterprise | whats_new_entries | entryId |
606+
+--------------------+---------------------+--------------------+
612607
```
613608

614609
#### statement_analysis / x$statement_analysis

views/p_s/schema_unused_indexes.sql

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@
2525
* PRIMARY (key) indexes are ignored.
2626
*
2727
* mysql> select * from schema_unused_indexes limit 5;
28-
* +-------------------------+----------------------------------------+------------+
29-
* | object_schema | object_name | index_name |
30-
* +-------------------------+----------------------------------------+------------+
31-
* | mem30_test__instruments | mysqlavailabilityadvisor$observedstate | PRIMARY |
32-
* | mem30_test__test | compressme | PRIMARY |
33-
* | mem30_test__test | compressmekeyblocksize | PRIMARY |
34-
* | mem30_test__test | dontcompressme | PRIMARY |
35-
* | mem30_test__test | round_robin_test | PRIMARY |
36-
* +-------------------------+----------------------------------------+------------+
28+
* +--------------------+---------------------+--------------------+
29+
* | object_schema | object_name | index_name |
30+
* +--------------------+---------------------+--------------------+
31+
* | mem30__bean_config | plists | path |
32+
* | mem30__config | group_selections | name |
33+
* | mem30__config | notification_groups | name |
34+
* | mem30__config | user_form_defaults | FKC1AEF1F9E7EE2CFB |
35+
* | mem30__enterprise | whats_new_entries | entryId |
36+
* +--------------------+---------------------+--------------------+
3737
*
3838
*/
3939

0 commit comments

Comments
 (0)