Skip to content

Remove ps schema prefix in queries#26

Open
jfg956 wants to merge 3 commits intosjmudd:masterfrom
jfg956:no_ps_prefix
Open

Remove ps schema prefix in queries#26
jfg956 wants to merge 3 commits intosjmudd:masterfrom
jfg956:no_ps_prefix

Conversation

@jfg956
Copy link
Copy Markdown

@jfg956 jfg956 commented Jan 13, 2026

(this PR contains many commits, it can be squash merged)

When checking what ps-top is doing via the general log, I saw that most queries are done in the default performance_schema table, and some with the full performance_schema prefix.

For having everything consistent (and efficient), I removed the prefix everywhere I found it (I might have missed some).

Jean-François Gagné added 3 commits January 13, 2026 17:00
Query simplified:
SELECT VARIABLE_NAME, VARIABLE_VALUE FROM performance_schema.global_variables
Query simplified:
SELECT 1 FROM performance_schema.events_stages_summary_global_by_event_name LIMIT 1
SELECT 1 FROM performance_schema.memory_summary_global_by_event_name LIMIT 1
SELECT 1 FROM performance_schema.table_io_waits_summary_by_table LIMIT 1
SELECT 1 FROM performance_schema.file_summary_by_instance LIMIT 1
SELECT 1 FROM performance_schema.table_lock_waits_summary_by_table LIMIT 1
SELECT 1 FROM performance_schema.events_waits_summary_global_by_event_name LIMIT 1
Query simplified:
ELECT VARIABLE_VALUE FROM performance_schema.global_status WHERE VARIABLE_NAME = ?
@jfg956 jfg956 marked this pull request as ready for review January 13, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant