gitlab-org--gitlab-foss/db
Timothy Andrew 161804bf40 Add a "populate metrics directly" option to the cycle analytics seed.
- The normal seed creates all the data for cycle analytics the "right"
  way. It creates issues, merge requests, commits, branches,
  deployments, etc. This is good, but too slow for perf testing.
  Generating a 1000 sets of records this way takes more than an hour.

- When the `CYCLE_ANALYTICS_POPULATE_METRICS_DIRECTLY` environment
  variable is passed in, the seed only creates issues and merge
  requests. It then adds the `metrics` for each issue and
  merge request directly, to save time.

- The seed now takes about 4 minutes to run for 1000 sets of records.
2016-09-17 12:16:48 +05:30
..
fixtures Add a "populate metrics directly" option to the cycle analytics seed. 2016-09-17 12:16:48 +05:30
migrate Improve performance of the cycle analytics page. 2016-09-15 14:53:02 +05:30
schema.rb Improve performance of the cycle analytics page. 2016-09-15 14:53:02 +05:30
seeds.rb