-
Notifications
You must be signed in to change notification settings - Fork 225
Database commands
shadowbq edited this page Dec 28, 2013
·
4 revisions
bundle exec rake snorby:soft_reset
Drop the database and recreate the schema. This will destroy events, users, etc. Everything that's stored in the database.
bundle exec rake snorby:hard_reset
RAILS_ENV=production rails c
Remove 1000 Events at a time false positives only.
while Event.all(:classification_id => 8).count > 0 do
trimdb = Event.all(:classification_id => 8, :limit => 1000, :order => :timestamp.asc)
trimdb.destroy!
end
Recalculate Statistics
$> bundle exec rake snorby:soft_reset