How should I specify work_mem/max_worker_processes if I want to do big queries now and then?
От
James(王旭)
Тема
How should I specify work_mem/max_worker_processes if I want to do big queries now and then?
Дата
Msg-id
tencent_3E7AB8853A9009844041E40C@qq.com
Список
Дерево обсуждения
How should I specify work_mem/max_worker_processes if I want to do big queries now and then? "James(王旭)" <wangxu@gu360.com>
Re: How should I specify work_mem/max_worker_processes if I want todo big queries now and then? Laurenz Albe <laurenz.albe@cybertec.at>
Re: How should I specify work_mem/max_worker_processes if I want to do big queries now and then? "James(王旭)" <wangxu@gu360.com>
Re: How should I specify work_mem/max_worker_processes if I want to do big queries now and then? "James(王旭)" <wangxu@gu360.com>
Re: How should I specify work_mem/max_worker_processes if I want todo big queries now and then? Imre Samu <pella.samu@gmail.com>
Re: How should I specify work_mem/max_worker_processes if I want to do big queries now and then? "James(王旭)" <wangxu@gu360.com>
Re: How should I specify work_mem/max_worker_processes if I want todo big queries now and then? Thomas Kellerer <spam_eater@gmx.net>
Re: How should I specify work_mem/max_worker_processes if I want to do big queries now and then? "James(王旭)" <wangxu@gu360.com>
Hello,
I am doing a query to fetch about 10000000 records in one time. But the query seems very slow, like "mission impossible".
I am very confident that these records should be fit into my shared_buffers settings(20G), and my query is totally on my index, which is this big:(19M x 100 partitions), this index size can also be put into shared_buffers easily.(actually I even made a new partial index which is smaller and delete the bigger old index)
This kind of situation makes me very disappointed.How can I make my queries much faster if my data grows more than 10000000 in one partition? I am using pg11.6.
Many thanks,
James
В списке pgsql-general по дате отправления
От: Laurenz Albe
Дата: