| От | A. Kretschmer |
|---|---|
| Тема | Re: select query not using index |
| Дата | |
| Msg-id | 20061202123220.GA31919@a-kretschmer.de обсуждение |
| Ответ на | select query not using index (<vivek@staff.ownmail.com>) |
| Список | pgsql-general |
am Sat, dem 02.12.2006, um 16:35:47 +0530 mailte vivek@staff.ownmail.com folgendes: > > The index was created before the table was populated. There are 3 rows > in the table for 3 different users. Now when I do a In this case, with only 3 rows, it is much cheaper to do a seq-scan instead a index-scan, because a index-scan must read the index first and then the table. And in your case, with only 3 rows, the engine needs only one page to read. Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47215, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера