mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 13:06:56 +08:00
PERF: add 'lower(title)' index on topics
This commit is contained in:
@ -0,0 +1,9 @@
|
||||
class AddLowerTitleIndexOnTopics < ActiveRecord::Migration
|
||||
def up
|
||||
execute "CREATE INDEX index_topics_on_lower_title ON topics (LOWER(title))"
|
||||
end
|
||||
|
||||
def down
|
||||
execute "DROP INDEX index_topics_on_lower_title"
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user