gpt4 book ai didi

postgresql - DBLINK vs Postgres_FDW,哪一个可以提供更好的性能?

转载 作者:行者123 更新时间:2023-11-29 11:42:31 25 4
gpt4 key购买 nike

我有一个用例,将数据分布在许多服务器上的许多数据库中,所有这些都在 postgres 表中。从任何给定的服务器/数据库,我可能需要查询另一个服务器/数据库。查询非常基本,标准选择在标准字段上带有 where 子句。

我目前已经实现了 postgres_FDW(我正在使用 postgres 9.5),但我认为查询没有使用远程数据库上的索引。对于这个用例(一个随机节点可能查询 N 个其他节点),这可能是我基于每个底层引擎实际执行方式的最佳性能选择?

最佳答案

The Postgres foreign data wrapper (postgres_FDW) is newer to PostgreSQL so it tends to be the recommended method. While the functionality in the dblink extension is similar to that in the foreign data wrapper, the Postgres foreign data wrapper is more SQL standard compliant and can provide improved performance over dblink connections.

阅读本文了解更多详细信息:Cross Database queryng

关于postgresql - DBLINK vs Postgres_FDW,哪一个可以提供更好的性能?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48287402/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com