【发布时间】:2016-08-10 10:24:37
【问题描述】:
三是日期列,oscar_alpha 是整数。
我有这个来自 Postgres 的 result 解释。在第 16 行,我想阻止访问表以在过滤条件中查找
Filter: ((three >= '15.04.2010 00:00'::date) AND (three <= '15.04.2016 00:00'::date) AND (oscar_alpha = 341)).
我想通过索引检查这个条件。 我创建了索引:
create index index1 on table_name (three , oscar_alpha);
create index index2 on table_name (three);
create index index3 on table_name (oscar_alpha);
但他们没有使用。
是的,一些数据是匿名的。
【问题讨论】:
标签: database postgresql indexing query-optimization