Re: [GENERAL] index speed and failed expectations?

2008-08-04 Thread Adam Rich
This query from the console: select * from stats order by start_time; takes 8 seconds before starting its output. Am I wrong in assuming that the index on start_time should make ORDER BY orders of magnitude faster? Or is this already fast enough? Or should I max up some memory (buffer)

Re: [GENERAL] index speed and failed expectations?

2008-08-04 Thread rihad
Adam Rich wrote: This query from the console: select * from stats order by start_time; takes 8 seconds before starting its output. Am I wrong in assuming that the index on start_time should make ORDER BY orders of magnitude faster? Or is this already fast enough? Or should I max up some memory

Re: [GENERAL] index speed and failed expectations?

2008-08-04 Thread Tom Lane
Adam Rich [EMAIL PROTECTED] writes: This query from the console: select * from stats order by start_time; takes 8 seconds before starting its output. Am I wrong in assuming that the index on start_time should make ORDER BY orders of magnitude faster? Postgresql won't use the index for

Re: [GENERAL] index speed and failed expectations?

2008-08-04 Thread Glyn Astill
However, if you limit the number of rows enough, you might force it to use an index: select * from stats order by start_time limit 1000; Thanks! Since LIMIT/OFFSET is the typical usage pattern for a paginated data set accessed from the Web (which is my case), it immediately

Re: [GENERAL] index speed and failed expectations?

2008-08-04 Thread Michael Fuhr
On Mon, Aug 04, 2008 at 08:35:28AM -0500, Adam Rich wrote: This query from the console: select * from stats order by start_time; takes 8 seconds before starting its output. Am I wrong in assuming that the index on start_time should make ORDER BY orders of magnitude faster?