I am using 'duration' property from data object of 'result' function to measure the duration of execution of my query.
I tried the same query in pgAdmin with "EXPLAIN ANALYSE".
Both have a big difference.
can anyone say why is this?
which is the right approach to measure the execution duration of my query.