pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
can i decrease the query time?
2+ messages / 2 participants
[nested] [flat]

* can i decrease the query time?
@ 2002-11-21 07:03 ernest_it@hotmail.com <ernest_it@hotmail.com>
  2002-11-26 15:53 ` Re: can i decrease the query time? Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 1 reply; 2+ messages in thread

From: ernest_it@hotmail.com @ 2002-11-21 07:03 UTC (permalink / raw)
  To: pgsql-sql

i created index already. how can i decrease the query time more.

number of record is over 1 million.
the following is the query plan. 

Group (cost=34082.59..34085.62 rows=61 width=112)
-> Sort (cost=34082.59..34082.59 rows=607 width=112)
-> Nested Loop (cost=0.00..34054.51 rows=607 width=112)
-> Nested Loop (cost=0.00..125.64 rows=2 width=108)
-> Nested Loop (cost=0.00..8.84 rows=1 width=22)
-> Index Scan using tbl_member_pkey on tbl_member d (cost=0.00..5.14
rows=1 width=18)
-> Index Scan using tbl_company_pkey on tbl_company c (cost=0.00..3.68
rows=1 width=4)
-> Index Scan using tbl_adpage_pkey on tbl_adpage b (cost=0.00..112.65
rows=332 width=86)
-> Index Scan using tbl_showlog_adpage_id_idx on tbl_showlog a
(cost=0.00..20370.75 rows=5466 width=4)



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: can i decrease the query time?
  2002-11-21 07:03 can i decrease the query time? ernest_it@hotmail.com <ernest_it@hotmail.com>
@ 2002-11-26 15:53 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>
  0 siblings, 0 replies; 2+ messages in thread

From: Stephan Szabo @ 2002-11-26 15:53 UTC (permalink / raw)
  To: ernest_it@hotmail.com <ernest_it@hotmail.com>; +Cc: pgsql-sql

On 20 Nov 2002, ernest_it@hotmail.com wrote:

> i created index already. how can i decrease the query time more.
>
> number of record is over 1 million.
> the following is the query plan.
>
> Group (cost=34082.59..34085.62 rows=61 width=112)
> -> Sort (cost=34082.59..34082.59 rows=607 width=112)
> -> Nested Loop (cost=0.00..34054.51 rows=607 width=112)
> -> Nested Loop (cost=0.00..125.64 rows=2 width=108)
> -> Nested Loop (cost=0.00..8.84 rows=1 width=22)
> -> Index Scan using tbl_member_pkey on tbl_member d (cost=0.00..5.14
> rows=1 width=18)
> -> Index Scan using tbl_company_pkey on tbl_company c (cost=0.00..3.68
> rows=1 width=4)
> -> Index Scan using tbl_adpage_pkey on tbl_adpage b (cost=0.00..112.65
> rows=332 width=86)
> -> Index Scan using tbl_showlog_adpage_id_idx on tbl_showlog a
> (cost=0.00..20370.75 rows=5466 width=4)

What's the actual query and the table layout for the tables in question
and if you're running 7.2, what does explain analyze show?





^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2002-11-26 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-11-21 07:03 can i decrease the query time? ernest_it@hotmail.com <ernest_it@hotmail.com>
2002-11-26 15:53 ` Stephan Szabo <sszabo@megazone23.bigpanda.com>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox