| От | Henshall, Stuart - WCP |
|---|---|
| Тема | Re: How efficient are Views |
| Дата | |
| Msg-id | E2870D8CE1CCD311BAF50008C71EDE8E01F748E5@MAIL_EXCHANGE обсуждение |
| Ответ на | How efficient are Views (John Taylor <postgres@jtresponse.co.uk>) |
| Список | pgsql-novice |
A view just re-executes the query.
Therefore a view is as efficient as the query it's based upon :)
hth,
- Stuart
> -----Original Message-----
> From: John Taylor [mailto:postgres@jtresponse.co.uk]
>
> Hi,
>
> I'm thinking about using a view for my application.
>
> However, I'm wondering about how efficient it will be once I
> have a large amount of data
> loaded.
>
> Are views generated for every access ?
> Are they generated when the underlying data changes ?
>
> Whould it maybe be faster to have a seperate table alongside
> the base data, and
> generate it via a trigger or stored procedure ?
>
> Thanks
> JohnT
В списке pgsql-novice по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера