Re: Query - CPU issue - Mailing list pgsql-general

From Jayadevan
Subject Re: Query - CPU issue
Date
Msg-id 1379566520485-5771558.post@n5.nabble.com
Whole thread Raw
In response to Re: Query - CPU issue  (Kevin Grittner <kgrittn@ymail.com>)
Responses Re: Query - CPU issue  (Jayadevan <maymala.jayadevan@gmail.com>)
Re: Query - CPU issue  (Kevin Grittner <kgrittn@ymail.com>)
List pgsql-general
Kevin Grittner-5 wrote
> We already had this.  I was asking for you to get EXPLAIN ANALYZE
> output for a run of the SELECT statement inside the geoip_city()
> function.

"Merge Join  (cost=9268.34..26193.41 rows=6282 width=24) (actual
time=892.188..892.190 rows=1 loops=1)"
"  Merge Cond: (l.id = b.location_id)"
"  ->  Index Scan using locations_pkey on locations l  (cost=0.42..15739.22
rows=438386 width=24) (actual time=0.022..865.025 rows=336605 loops=1)"
"  ->  Sort  (cost=9267.84..9283.54 rows=6282 width=8) (actual
time=1.329..1.330 rows=1 loops=1)"
"        Sort Key: b.location_id"
"        Sort Method: quicksort  Memory: 25kB"
"        ->  Index Scan using ix_end_start_ip on blocks b
(cost=0.43..8871.54 rows=6282 width=8) (actual time=0.573..1.268 rows=1
loops=1)"
"              Index Cond: ((3721196957::bigint <= end_ip) AND
(3721196957::bigint >= start_ip))"
"Total runtime: 892.439 ms"




--
View this message in context: http://postgresql.1045698.n5.nabble.com/Query-CPU-issue-tp5771421p5771558.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


pgsql-general by date:

Previous
From: David Johnston
Date:
Subject: Re: How to know if a query is semantically correct without execute it?
Next
From: Aaron Carlisle
Date:
Subject: Question About Serializable