mirror of
https://github.com/discourse/discourse.git
synced 2025-02-17 13:12:45 +08:00
PERF: add 'lower(title)' index on topics
This commit is contained in:
parent
131ae8486b
commit
d56e91f44f
|
@ -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
|
Loading…
Reference in New Issue
Block a user