Re: faster search
| От | Steve Atkins |
|---|---|
| Тема | Re: faster search |
| Дата | |
| Msg-id | 20050610201240.GA9822@gp.word-to-the-wise.com обсуждение исходный текст |
| Ответ на | faster search (Clark Slater <list@slatech.com>) |
| Ответы |
Re: faster search
|
| Список | pgsql-performance |
On Fri, Jun 10, 2005 at 01:45:05PM -0400, Clark Slater wrote: > Hi- > > Would someone please enlighten me as > to why I'm not seeing a faster execution > time on the simple scenario below? Because you need to extract a huge number of rows via a seqscan, sort them and then throw them away, I think. > explain analyze select * from test where productlistid=3 and typeid=9 > order by partnumber limit 15; Create an index on (productlistid, typeid, partnumber) then select * from test where productlistid=3 and typeid=9 order by productlistid, typeid, partnumber LIMIT 15; ? Cheers, Steve
В списке pgsql-performance по дате отправления: