Re: [Q] optmizing postgres for 'single client' / many small queries

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [Q] optmizing postgres for 'single client' / many small queries
Дата
Msg-id 14643.1251915961@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [Q] optmizing postgres for 'single client' / many small queries  ("V S P" <toreason@fastmail.fm>)
Ответы Re: [Q] optmizing postgres for 'single client' / many small queries  ("V S P" <toreason@fastmail.fm>)
Список pgsql-general
"V S P" <toreason@fastmail.fm> writes:
> The application typicall goes like this

> select id, child_tb_key_id, <fields with parms> from tb1

> then for each selected row above
>      select from the child table do a select (like the above)

> and so on -- many levels deep

Seems like you need to fix your data representation so that this
operation can be collapsed into one query.  The main problem looks
to be a bogus decision to have separate child tables rather than
one big table with an extra key column.

            regards, tom lane

В списке pgsql-general по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: PL/SQL & unset custom variable
Следующее
От: "V S P"
Дата:
Сообщение: Re: [Q] optmizing postgres for 'single client' / many small queries