| От | Tom Lane |
|---|---|
| Тема | Re: On the performance of views |
| Дата | |
| Msg-id | 8197.1075135417@sss.pgh.pa.us обсуждение |
| Ответ на | On the performance of views (Bill Moran <wmoran@potentialtech.com>) |
| Ответы |
Re: On the performance of views
|
| Список | pgsql-performance |
Bill Moran <wmoran@potentialtech.com> writes:
> At first I was going to just convert all MSSQL procedures to Postgres functions.
> But now that I'm looking at it, a lot of them may be candidates for views. A
> lot of them take on the format of:
> SELECT a.cola, b.colb, c.colc
> FROM a JOIN b JOIN c
> WHERE a.prikey=$1
You'd probably be better off using views, if making that significant a
notational change is feasible for you. Functions that return multiple
columns are notationally messy in Postgres. A view-based solution would
be more flexible and likely have better performance.
regards, tom lane
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера