mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 16:21:52 +02:00
index for suggestions, only load when needed
This commit is contained in:
parent
ae3df1d0f9
commit
16673f0111
4 changed files with 11 additions and 4 deletions
9
migrations/113_site_suggestions_index.rb
Normal file
9
migrations/113_site_suggestions_index.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_index :sites, [:follow_count, :updated_at, :views]
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_index :sites, [:follow_count, :updated_at, :views]
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue