PERF: Add index for `post_search_data` and `topic_search_data`.

PERF: Add index for post_search_data and topic_search_data.

diff --git a/db/migrate/20190408082101_add_search_data_indexes.rb b/db/migrate/20190408082101_add_search_data_indexes.rb
new file mode 100644
index 0000000..c8c56c2
--- /dev/null
+++ b/db/migrate/20190408082101_add_search_data_indexes.rb
@@ -0,0 +1,6 @@
+class AddSearchDataIndexes < ActiveRecord::Migration[5.2]
+  def change
+    add_index :topic_search_data, [:topic_id, :version, :locale]
+    add_index :post_search_data, [:post_id, :version, :locale]
+  end
+end

GitHub sha: b7d8bbc0