mirror of
https://github.com/neocities/neocities.git
synced 2025-07-24 19:38:25 +02:00
use nokogiri for rss, return better results, index for speed
This commit is contained in:
parent
7788437c33
commit
fd15fd6856
5 changed files with 32 additions and 22 deletions
9
migrations/123_events_rss_index.rb
Normal file
9
migrations/123_events_rss_index.rb
Normal file
|
@ -0,0 +1,9 @@
|
|||
Sequel.migration do
|
||||
up {
|
||||
DB.add_index :events, [:created_at, :site_id, :site_change_id, :is_deleted], name: :events_rss_index, order: {created_at: :desc}
|
||||
}
|
||||
|
||||
down {
|
||||
DB.drop_index :events, :rss
|
||||
}
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue