Re: EXPLAIN ANALYZE total runtime != walltime
От | Tom Lane |
---|---|
Тема | Re: EXPLAIN ANALYZE total runtime != walltime |
Дата | |
Msg-id | 11174.1093486710@sss.pgh.pa.us обсуждение исходный текст |
Ответ на | EXPLAIN ANALYZE total runtime != walltime (Jon Lapham <lapham@jandr.org>) |
Ответы |
Re: EXPLAIN ANALYZE total runtime != walltime
|
Список | pgsql-general |
Jon Lapham <lapham@jandr.org> writes: > I have been using the EXPLAIN ANALYZE command to debug some performance > bottlenecks in my database. In doing so, I have found an oddity (to me > anyway). The "19ms" total runtime reported below actually takes 25 > seconds on my computer (no other CPU intensive processes running). I think that the foreign-key-checking triggers that are fired by the DELETE will execute at end of statement, which is outside the time window measured and reported by EXPLAIN ANALYZE. Better look at your FK setup. The usual culprit for slow DELETE is an unindexed referencing column in another table, but it could also be that the referencing column is not the same datatype as the key column. regards, tom lane
В списке pgsql-general по дате отправления: