Re: [GENERAL] Optimising a query requiring seqscans=0

2006-09-23 Thread Russ Brown
On Thu, 2006-09-21 at 23:39 -0400, Jim Nasby wrote: > On Sep 14, 2006, at 11:15 AM, Russ Brown wrote: > > We recently upgraded our trac backend from sqlite to postgres, and I > > decided to have a little fun and write some reports that delve into > > trac's subversion cache, and got stuck with a qu

Re: [GENERAL] Optimising a query requiring seqscans=0

2006-09-21 Thread Jim Nasby
On Sep 14, 2006, at 11:15 AM, Russ Brown wrote: We recently upgraded our trac backend from sqlite to postgres, and I decided to have a little fun and write some reports that delve into trac's subversion cache, and got stuck with a query optimisation problem. Table revision contains 2800+ rows Ta

[GENERAL] Optimising a query requiring seqscans=0

2006-09-14 Thread Russ Brown
Hi, We recently upgraded our trac backend from sqlite to postgres, and I decided to have a little fun and write some reports that delve into trac's subversion cache, and got stuck with a query optimisation problem. Table revision contains 2800+ rows Table node_change contains 37+. rev is a '