Re: EXPLAIN time difference in real - Mailing list pgsql-admin

From Michael Monnerie
Subject Re: EXPLAIN time difference in real
Date
Msg-id 535BF163.9070401@is.it-management.at
Whole thread Raw
In response to Re: EXPLAIN time difference in real  (Jov <amutu@amutu.com>)
Responses Re: EXPLAIN time difference in real  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-admin
Am 26.04.2014 16:17, schrieb Jov:
Maybe your data or index is read from disk for some write heavy load time,your sql get 1300ms.when you explain analyze the sql,the data and index already in  cached in the memory.

you can verify this by restart the server and run the sql from a fresh start postgresql.  


Tried that:
EXPLAIN ANALYZE....
Total runtime: 280.537 ms

EXPLAIN:LOG:  duration: 1501.807 ms  statement: EXPLAIN ANALYZE VERBOSE SELECT

So again 1500ms versus 280ms. Why?

-- 
mit freundlichen Grüssen,
Michael Monnerie, Ing. BSc, Tel: +43 660 415 6531

Protéger.at Internet Services Austria
Web: http://protéger.at und http://proteger.at 
Facebook https://facebook.com/protegerat
Mitglied im it-management Netzwerk http://it-management.at

pgsql-admin by date:

Previous
From: Jov
Date:
Subject: Re: EXPLAIN time difference in real
Next
From: Tom Lane
Date:
Subject: Re: EXPLAIN time difference in real