2026-06-01から1ヶ月間の記事一覧
SVV_TABLE_INFO の unsorted(%) と vacuum_sort_benefit(%) の値が大きい場合に VACUUM SORT を実行するとクエリ性能が改善する可能性がある。 unsorted(%): ソートされていない割合 vacuum_sort_benefit(%): クエリのアクセステーブルへの選択率が高い、多…
なるべくprefixのついていない文字列を選ぶ(先頭8バイトしかソートに使われない) Amazon Redshiftの仕様を調べてみた | フューチャー技術ブログ The values within the block are prefixed with a string 8 bytes or longer. The minimum and maximum values…
select a.*, c.elapsed_time, c.queue_time, c. execution_time, c.compile_time, c.planning_time, c.lock_wait_time, c.start_time, c.end_time from sys_query_detail a, svv_table_info b, sys_query_history c where a.table_id = b.table_id and a.que…