在Postgres 9.2上慢选

时间:2017-04-12 05:52:16

标签: postgresql

我正在使用客户端的数据库,他的架构无法更改,而且我的查询速度非常慢。我正在寻找任何可能帮助我加快查询速度的提示或技巧,即使是最轻微的。

我的查询如下所示

select sb.account_id AS account id,
s.work AS work,
s.type AS type,
s.counter AS counter,
a.name AS content_name,
a.content_type AS content_type,
a.created_at::date AS created_date,
st.name AS strategy_name,
t.name AS content_author,
p.name AS content_group
from
table1 sb,
table2 s,
table3 a,
table4 st,
table5 t,
table6 s,
table7 p
where
sb.account_id = 1234
and s.account_id = sb.account_id
and a.account_id = sb.account_id
and st.account_id = sb.account_id
and t.account_id = sb.account_id
and p.account_id = sb.account_id

有没有人对如何加快查询执行时间有任何想法?

0 个答案:

没有答案