| От | mlw |
|---|---|
| Тема | Re: External search engine, advice |
| Дата | |
| Msg-id | 3B08306F.E419EB05@mohawksoft.com обсуждение исходный текст |
| Ответ на | External search engine, advice (mlw <markw@mohawksoft.com>) |
| Список | pgsql-hackers |
Andrew McMillan wrote: > > Tom Lane wrote: > > > > begin; > > select * from foo where x = functhatreadsbar(); > > update bar ...; > > select * from foo where x = functhatreadsbar(); > > end; > > > > does not give you the desired results. > > But why would you be marking the function 'iscachable' if you wanted to see the > change there? Because if there is an index on 'x' you would want to use it instead of performing a full table scan. If table 'foo' has millions of records, and functhatreadsbar() return one value, an operation that can take milliseconds, not takes seconds with no benefit.
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера