问题标签 [postgresql-parallel-query]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
71 浏览

sql - 优化大表上的 SELECT count(*)

PostgreSQL 14 上具有 64GB 内存和 20 个线程的大型表的基本计数。存储是 NVME 磁盘。

问题:

  • 如何改进此选择计数查询的查询?我应该对 Postgres 配置进行哪些优化?
  • 工人计划是4,但发射是0,这正常吗?