Skip to content

Add measurement to import_rake task

Nikola Milojevic requested to merge add_measurement_to_import_rake_task into master

As part of #196540 (closed) I was measuring large imports using import.rake task.

Since using import.rake task is easiest way to test import in development, I find it useful to also use it to measure performance of import by measuring:

  • execution time of the import
  • number of executed sql quesris
  • Total GC count, Minor GC count and Major GC count

Like we did when we measured performances in #196540 (closed)

This MR adds measuring_enabled attribute to rake task, so we can enable measurement when needed by simply running this rake task like this:

bundle exec rake "gitlab:import_export:import[root, root, testingprojectimport, /path/to/file.tar.gz, true]"

Note: measuring_enabled is false by default.

Merge request reports