Split sqlite/mysql record stuff

This commit is contained in:
Donal McBreen
2025-11-20 17:37:44 +00:00
parent a4850fbe73
commit 19b0e25eac
5 changed files with 172 additions and 204 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ namespace :search do
desc "Reindex all cards and comments in the search index"
task reindex: :environment do
puts "Clearing search records..."
Search::Record::SHARD_COUNT.times do |shard_id|
Search::Record::Trilogy::SHARD_COUNT.times do |shard_id|
ActiveRecord::Base.connection.execute("DELETE FROM search_records_#{shard_id}")
end