| От | Linos |
|---|---|
| Тема | Re: CTE vs Subquery |
| Дата | |
| Msg-id | 4EA6E839.6050804@linos.es обсуждение |
| Ответ на | Re: CTE vs Subquery (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: CTE vs Subquery
|
| Список | pgsql-performance |
El 25/10/11 18:43, Tom Lane escribió: > Linos <info@linos.es> writes: >> i am having any problems with performance of queries that uses CTE, can the >> join on a CTE use the index of the original table? > > CTEs act as optimization fences. This is a feature, not a bug. Use > them when you want to isolate the evaluation of a subquery. > > regards, tom lane > The truth it is that complex queries seems more readable using them (maybe a personal preference no doubt). Do have other popular databases the same behavior? SQL Server or Oracle for example? Regards, Miguel Ángel.
В списке pgsql-performance по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера