summaryrefslogtreecommitdiff
path: root/lib/tasks/dev.rake
diff options
context:
space:
mode:
Diffstat (limited to 'lib/tasks/dev.rake')
-rw-r--r--lib/tasks/dev.rake4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/tasks/dev.rake b/lib/tasks/dev.rake
index b1db4dc94a6..0488f26318a 100644
--- a/lib/tasks/dev.rake
+++ b/lib/tasks/dev.rake
@@ -5,6 +5,10 @@ namespace :dev do
task setup: :environment do
ENV['force'] = 'yes'
Rake::Task["gitlab:setup"].invoke
+
+ # Make sure DB statistics are up to date.
+ ActiveRecord::Base.connection.execute('ANALYZE')
+
Rake::Task["gitlab:shell:setup"].invoke
end