pg.ddx.io  pgsql-performance@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Matthew Nuzum <matt.followers@gmail.com>
To: 'Tom Lane' <tgl@sss.pgh.pa.us>
Cc: pgsql-performance@postgresql.org
Subject: Re: Preventing query from hogging server
Date: Thu, 24 Mar 2005 13:55:32 -0600
Message-ID: <42431b39.16b65c96.1b4b.ffffd9b6@mx.gmail.com> (raw)
In-Reply-To: <5050.1111693395@sss.pgh.pa.us>

> How many rows in usage_access?

Oh, I just got my explain analyze:
                                                                      QUERY
PLAN                                                             
----------------------------------------------------------------------------
--------------------------------------------------------------------------
 Subquery Scan "*SELECT*"  (cost=9499707.90..9856491.74 rows=3567838
width=28) (actual time=11443537.58..12470835.17 rows=1198141 loops=1)
   ->  Aggregate  (cost=9499707.90..9856491.74 rows=3567838 width=28)
(actual time=11443537.56..12466550.25 rows=1198141 loops=1)
         ->  Group  (cost=9499707.90..9767295.78 rows=35678384 width=28)
(actual time=11443537.10..12408372.26 rows=35678383 loops=1)
               ->  Sort  (cost=9499707.90..9588903.86 rows=35678384
width=28) (actual time=11443537.07..12035366.31 rows=35678383 loops=1)
                     Sort Key: accountid, sessionid
                     ->  Seq Scan on usage_access  (cost=0.00..1018901.84
rows=35678384 width=28) (actual time=8.13..416580.35 rows=35678383 loops=1)
 Total runtime: 12625498.84 msec
(7 rows)

-- 
Matthew Nuzum <matt@followers.net>
www.followers.net - Makers of "Elite Content Management System"
View samples of Elite CMS in action by visiting
http://www.followers.net/portfolio/




view thread (9+ messages)  latest in thread

Message-ID: <42431b39.16b65c96.1b4b.ffffd9b6@mx.gmail.com>
Permalink:  ../42431b39.16b65c96.1b4b.ffffd9b6@mx.gmail.com/
Also on:    postgresql.org/message-id/42431b39.16b65c96.1b4b.ffffd9b6@mx.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-performance@postgresql.org
  Cc: matt.followers@gmail.com, tgl@sss.pgh.pa.us
  Subject: Re: Preventing query from hogging server
  In-Reply-To: <42431b39.16b65c96.1b4b.ffffd9b6@mx.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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