Postgres query optimization (forcing an index scan)

后端 未结 4 1079
孤城傲影
孤城傲影 2020-12-05 13:13

Below is my query. I am trying to get it to use an index scan, but it will only seq scan.

By the way the metric_data table has 130 million rows. The

4条回答
  •  情书的邮戳
    2020-12-05 13:51

    Have you tried to use:

    WHERE S.NAME = ANY (VALUES ('cpu'), ('mem')) instead of ARRAY

    like here

提交回复
热议问题