mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 09:26:54 -06:00
add index
This commit is contained in:
parent
a23a04a1e5
commit
c552f846ae
@ -431,7 +431,7 @@ class ImportScripts::Lithium < ImportScripts::Base
|
||||
|
||||
|
||||
puts "loading data into temp table"
|
||||
PostAction.exec_sql("create temp table accepted_data(post_id int)")
|
||||
PostAction.exec_sql("create temp table accepted_data(post_id int primary key)")
|
||||
PostAction.transaction do
|
||||
results.each do |result|
|
||||
|
||||
@ -446,6 +446,7 @@ class ImportScripts::Lithium < ImportScripts::Base
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
puts "deleting dupe answers"
|
||||
PostAction.exec_sql <<-SQL
|
||||
DELETE FROM accepted_data WHERE post_id NOT IN (
|
||||
|
Loading…
Reference in New Issue
Block a user