Re: - Mailing list pgsql-novice

From greg@turnstep.com
Subject Re:
Date
Msg-id ec013c456c58e9e723370d56b776c627@biglumber.com
Whole thread Raw
In response to Re:  (Andrew McMillan <andrew@catalyst.net.nz>)
Responses Re:
List pgsql-novice
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


>>> Wouldn't there need to be an index on OID for your query to be fast?
>>>
>> No, the single index on the "date" field is enough. See the EXPLAIN
>> output from my first post in the original thread:
>>
> However the original poster suggested there would ultimately be 200,000
> or more rows in the table.

Yes, and my EXPLAIN is on a table with 200,000 rows in it. Hence the fact
that it took over 5 seconds - which is still very fast compared to the
original query.

- --
Greg Sabino Mullane greg@turnstep.com
PGP Key: 0x14964AC8 200302101447

-----BEGIN PGP SIGNATURE-----
Comment: http://www.turnstep.com/pgp.html

iD8DBQE+SAHxvJuQZxSWSsgRAkxTAJ9TnEAjypMGbv8ZRn55yqe/8AZyQgCcCUPm
/dU6kHroxm1XpC0lUrvdY+Y=
=GwmT
-----END PGP SIGNATURE-----



pgsql-novice by date:

Previous
From: Andrew McMillan
Date:
Subject: Re:
Next
From: "Scott Morrison"
Date:
Subject: Re: