Re: RFC: Async query processing

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: RFC: Async query processing
Дата
Msg-id 52C959A7.5040401@2ndquadrant.com
обсуждение исходный текст
Ответ на Re: RFC: Async query processing  (Merlin Moncure <mmoncure@gmail.com>)
Список pgsql-hackers
On 01/04/2014 01:22 AM, Merlin Moncure wrote:
> Long term, I'd rather see an optimized 'ORM flush' assemble the data
> into a structured data set (perhaps a JSON document) and pass it to
> some receiving routine that decomposed it into records.

The same is true on the input side. I'd much rather be sending an ORM
client a big JSON / YAML / whatever graph than a horrible,
duplication-filled chained LEFT JOIN projection like they currently rely
on. When they're not just doing n+1 selects, which is worse.

I think that's really a side-issue though. ORMs aren't going to change
in a hurry, and batching / fire-and-forget support is good for all sorts
of other jobs too.

-- Craig Ringer                   http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training & Services



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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: RFC: Async query processing
Следующее
От: Greg Stark
Дата:
Сообщение: Re: RFC: Async query processing