多くの場合、distinctを回避することで、このようなクエリをより高速に実行できます。 group byを使用する 代わりに:
select my_table.foo
from my_table
where [whatever where conditions you want]
group by foo;
多くの場合、distinctを回避することで、このようなクエリをより高速に実行できます。 group byを使用する 代わりに:
select my_table.foo
from my_table
where [whatever where conditions you want]
group by foo;