postgres-xl self join cost 10 seconds when combine data

夙愿已清 提交于 2019-12-08 04:56:28

Also try something like "SET work_mem = '256MB'; SET LOCAL work_mem = '256MB';". Increase default memory for sorting and vacuum.

This is more a question for https://dba.stackexchange.com and, in fact, someone had the same problem there.

You can see my answer on the linked question, here is a short summary:

It's a postgres-xl bug that is triggered on queries planned and executed using rows redistribution and for which some nodes don't have any rows.

You can work around it by changing the query, chaning the tables distribution, or adding data. You can use EXPLAIN to check if your query will involve data redistribution.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!