|
Michael, Great suggestion. I've read about CLUSTER, but never had a chance to use it. The only problem is that this table with 9 million records has 5 or 6 indexes. It is hard to pick the most used, but I'll bet CLUSTER will make at least one of the queries run very fast, especially for an index with a small number of distinct values. The speed of the query is (as Michael implies) limited to the rate at which the disk can seek and read. I have done experiments with views and cursors; there was no improvement in speed. I've also tried only pulling back primary keys in the hope that a smaller amount of data would more quickly be read into memory. No speed increase. I have also raised all the usual memory limits, with the expected results (slight speed improvements). I'll try CLUSTER (I'm looking forward to that test), but if we really need speed, it will probably be necessary to create copies of the table, or copy portions of the table elsewhere (essentially creating materialized views, I suppose). I'm still trying to get my science compatriot here to tell me which index he most wants to improve, then I'll CLUSTER the table on that index. Thanks! Tom Michael Fuhr wrote: On Wed, Aug 09, 2006 at 03:46:38PM +0200, Martijn van Oosterhout wrote: -- Tom Laudeman [EMAIL PROTECTED] (434) 924-2456 http://www.people.virginia.edu/~twl8n/ http://laudeman.com/ |
- Re: [GENERAL] Tuning to speed select louis gonzales
- Re: [GENERAL] Tuning to speed select Harald Armin Massa
- Re: [GENERAL] Tuning to speed select Richard Broersma Jr
- Re: [GENERAL] Tuning to speed select Alban Hertroys
- Re: [GENERAL] Tuning to speed select louis gonzales
- Re: [GENERAL] Tuning to speed select Scott Marlowe
- Re: [GENERAL] Tuning to speed select Tom Laudeman
- Re: [GENERAL] Tuning to speed select Michael Fuhr
- Re: [GENERAL] Tuning to speed select Reece Hart
- Re: [GENERAL] Tuning to speed select Tom Laudeman
- Re: [GENERAL] Tuning to speed select Michael Fuhr
- Re: [GENERAL] Tuning to speed se... Tom Lane
- Re: [GENERAL] Tuning to speed select Merlin Moncure
- Re: [GENERAL] Tuning to speed select Tom Laudeman
- Re: [GENERAL] Tuning to speed select Merlin Moncure
- Re: [GENERAL] Tuning to speed select Roman Neuhauser
- Re: [GENERAL] Tuning to speed se... Joshua D. Drake
