Skip to content

A platform for community discussion. Free, open, simple.

Update annotations.

Guo Xiang Tan28d117898fb4
diff --git a/app/models/post.rb b/app/models/post.rb
index 2a6ce5720c8..019d5d47f54 100644
--- a/app/models/post.rb
+++ b/app/models/post.rb
@@ -988,6 +988,7 @@ end
# idx_posts_created_at_topic_id (created_at,topic_id) WHERE (deleted_at IS NULL)
# idx_posts_deleted_posts (topic_id,post_number) WHERE (deleted_at IS NOT NULL)
# idx_posts_user_id_deleted_at (user_id) WHERE (deleted_at IS NULL)
+# index_posts_on_id_and_baked_version (id DESC,baked_version) WHERE (deleted_at IS NULL)
# index_posts_on_reply_to_post_number (reply_to_post_number)
# index_posts_on_topic_id_and_percent_rank (topic_id,percent_rank)
# index_posts_on_topic_id_and_post_number (topic_id,post_number) UNIQUE
diff --git a/app/models/post_search_data.rb b/app/models/post_search_data.rb
index c30aa7a871e..7a873a505d5 100644
--- a/app/models/post_search_data.rb
+++ b/app/models/post_search_data.rb
@@ -14,5 +14,6 @@ end
#
# Indexes
#
-# idx_search_post (search_data) USING gin
+# idx_search_post (search_data) USING gin
+# index_post_search_data_on_post_id_and_version_and_locale (post_id,version,locale)
#
diff --git a/app/models/topic_search_data.rb b/app/models/topic_search_data.rb
index 7203a84709b..115570c2098 100644
--- a/app/models/topic_search_data.rb
+++ b/app/models/topic_search_data.rb
@@ -14,5 +14,6 @@ end
#
# Indexes
#
-# idx_search_topic (search_data) USING gin
+# idx_search_topic (search_data) USING gin
+# index_topic_search_data_on_topic_id_and_version_and_locale (topic_id,version,locale)
#