| От | Edmar Wiggers |
|---|---|
| Тема | RE: Using Array-Values in subselect |
| Дата | |
| Msg-id | NEBBIAKDCDHFGJMLHCKIGEDFCBAA.edmar@brasmap.com обсуждение исходный текст |
| Ответ на | Using Array-Values in subselect (Alvar Freude <alvar.freude@merz-akademie.de>) |
| Список | pgsql-sql |
IMHO you should use another table instead of an array. Forget about reasonable speed when using IN sub-queries, you'll get a sequential scan of the sub-query for every row in the master select. I've heard the EXISTS operator provides far better performance. In 7.1, there's a very nice solution: use the sub-query in the FROM clause and make joins to it. Should be MUCH faster. > But this causes an error because the array field just returns a string > instead of seperated values. Is there a way to make arrays return sort > of "real arrays" or something usable in a subselect in reasonable speed?
В списке pgsql-sql по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера