Re: Is there anything I should watch out for when creating temporary tables with psycopg2?
В списке psycopg по дате отправления:
| От | Federico Di Gregorio |
|---|---|
| Тема | Re: Is there anything I should watch out for when creating temporary tables with psycopg2? |
| Дата | |
| Msg-id | 4E4B909A.2020407@dndg.it обсуждение исходный текст |
| Ответ на | Is there anything I should watch out for when creating temporary tables with psycopg2? ("W. Matthew Wilson" <matt@tplus1.com>) |
| Список | psycopg |
On 12/08/11 19:59, W. Matthew Wilson wrote: > I'm breaking one gigantic query into several temporary tables and, > then I'll join those and then do a select. > > Is there anything I should watch out for? > > Also, what are some other good methods to reduce gigantic queries into > manageable amounts? It depends on what you want. Speed? To easily manage query SQL? Here we don't use temporary table but table-returning SQL procedures (not plpgsql, just plain sql) and then do something like: SELECT * FROM procedure1(customer_id, date) A, procedure2(...) B WHERE A.id = B.id ... and so on. federico -- Federico Di Gregorio federico.digregorio@dndg.it Studio Associato Di Nunzio e Di Gregorio http://dndg.it The number of the beast: vi vi vi. -- Delexa Jones
В списке psycopg по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера