Re: Implementing foreign data wrappers and avoiding n+1 querying

Поиск
Список
Период
Сортировка
От David Rowley
Тема Re: Implementing foreign data wrappers and avoiding n+1 querying
Дата
Msg-id CAApHDvrHs+HJ5F4Nxh3A2=v4icfXEt8naVw=EF1y+JqE5Cm6Pw@mail.gmail.com
обсуждение исходный текст
Ответ на Implementing foreign data wrappers and avoiding n+1 querying  (David Gilman <davidgilman1@gmail.com>)
Ответы Re: Implementing foreign data wrappers and avoiding n+1 querying  (David Gilman <davidgilman1@gmail.com>)
Список pgsql-general
On Thu, 22 Dec 2022 at 13:31, David Gilman <davidgilman1@gmail.com> wrote:
>
> When a fdw table participates in query planning and finds itself as
> part of a join it can output a parameterized path. If chosen, Postgres
> will dutifully call the fdw over and over via IterateForeignScan to
> fetch matching tuples. Many fdw extensions do network traffic, though,
> and it would be beneficial to reduce the total number of queries done
> or network connections established.

Sounds like you might be looking for fdw_startup_cost [1].

David

[1] https://www.postgresql.org/docs/current/postgres-fdw.html



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

Предыдущее
От: Yi Sun
Дата:
Сообщение: pg_wal directory max size
Следующее
От: Andreas Kretschmer
Дата:
Сообщение: Re: pg_wal directory max size