以下のクエリを持つ手順があります。
Select
a.column
,count(distinct(c.column))
from `table1` a with (nolock)
inner join `table2` b with(`nolock`) on a.id=b.id
inner join `table3` c with (`nolock`) on charindex(c.colum,a.column)>0
group by
a.column
table1 には約 36,000 行あり、クエリは結果セットを読み込むのに約 40 秒かかります。
a.column には fts インデックスがインストールされており、xml データ型です。
結合を分割しようとしましたが、グループ化によって結果が異なります。
このクエリを書き直して高速化するにはどうすればよいですか?