Хабр Курсы для всех
РЕКЛАМА
Практикум, Хекслет, SkyPro, авторские курсы — собрали всех и попросили скидки. Осталось выбрать!
select * from partitioned_table t1 where partition_key = 1select * from partitioned_table t1, partitioned_table t2 where t1.partition_key = 1 and t2.partition_key = 1innodb_stats_on_metadata = OFFDrizzle is a community-driven open source project that is forked from the popular MySQL database.
The Drizzle team has removed non-essential code, re-factored the remaining code into a plugin-based
architecture and modernized the code base moving to C++.
show processlist; -- смотрим идентификатор нужного нам процесса
select *
from performance_schema.threads t
where t.processlist_id = 1; -- получаем идентификатор треда для трейсов
select 'current' type,
event_name,
source,
sum(timer_wait) timer_wait,
count(1)
from performance_schema.events_waits_current
where thread_id = 25
group by event_name, source
union all
select 'history' type,
event_name,
source,
sum(timer_wait) timer_wait,
count(1)
from performance_schema.events_waits_history
where thread_id = 25
group by event_name, source
union all
select 'long' type,
event_name,
source,
sum(timer_wait) timer_wait,
count(1)
from performance_schema.events_waits_history_long
where thread_id = 25
group by event_name, source
order by timer_wait desc;
-- limit 10;
Сам по себе механизм партиций появился не так уж давно, ему еще нужна обкатка. Кроме того, вы ведь пользовались Community редакцией, верно? Возможно в коммерческой дела обстоят лучше?
Все врут или почему в MySQL лучше не использовать партиции