Skip site navigation (1) Skip section navigation (2)

Re: Improve Query

From: Heikki Linnakangas <heikki(dot)linnakangas(at)enterprisedb(dot)com>
To: Zach Calvert <zachcalvert(at)hemerasoftware(dot)com>
Cc: Grzegorz Jaśkiewicz <gryzman(at)gmail(dot)com>, Nikolas Everett <nik9000(at)gmail(dot)com>, pgsql-performance(at)postgresql(dot)org, Dan Scott <balancedtree(at)gmail(dot)com>
Subject: Re: Improve Query
Date: 2009-05-27 17:10:20
Message-ID: 4A1D73FC.8060608@enterprisedb.com (view raw or flat)
Thread:
Lists: pgsql-performance
Zach Calvert wrote:
> Still getting a seq scan after doing vacuum analyze.  Any other ideas?

Try CLUSTERing the table on the (leaderboardid, active, score) index.

-- 
   Heikki Linnakangas
   EnterpriseDB   http://www.enterprisedb.com

In response to

pgsql-performance by date

Next:From: Alan McKayDate: 2009-05-27 17:57:08
Subject: Postgres Clustering
Previous:From: Zach CalvertDate: 2009-05-27 16:37:06
Subject: Re: Improve Query

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group