我們在postgres日誌和高I/O等待時間中觀察到很長的COMMIT時間。 Postgres的版本的PostgreSQL 9.1.14在x86_64未知-Linux的GNU,與gcc(Ubuntu的/ Linaro的4.6.3-1ubuntu5)4.6.3,編譯64位 iotop顯示以下輸出 TID PRIO USER DISK READ DISK WRITE SWAPIN IO COM
select SPARE_PART_ID amont_id,sum(amount) monthAmount
from pmms.SPARE_PART_TRANS_INFO
where trans_type='2'
and CAST(created_dt AS date) between '2016-09-19' and '2016-09-27'
group by SPARE_PART_ID