假设我有一个包含 3 列 a、b 和 c 的表。
我可以通过使用索引来加速看起来像这样的查询吗??
SELECT a,b,SUM(c) # or AVG(c) FROM table GROUP BY a,b ORDER BY a,b ;
如果上述问题是肯定的,您推荐什么类型的索引,这将如何工作?
performance index postgresql-9.6 query-performance
index ×1
performance ×1
postgresql-9.6 ×1
query-performance ×1