Skip to content
Snippets Groups Projects
  1. Jan 10, 2020
  2. Dec 31, 2019
  3. Nov 26, 2019
  4. Nov 25, 2019
  5. Nov 22, 2019
  6. Nov 20, 2019
  7. Nov 04, 2019
  8. Oct 22, 2019
  9. Sep 30, 2019
  10. Sep 20, 2019
  11. Sep 19, 2019
  12. Sep 18, 2019
  13. Sep 17, 2019
  14. Sep 16, 2019
  15. Sep 13, 2019
  16. Sep 12, 2019
  17. Sep 11, 2019
  18. Sep 10, 2019
  19. Sep 09, 2019
    • Mo Khan's avatar
      Add approval MR rule to all_models.yml · 3dd99c9d
      Mo Khan authored
      3dd99c9d
    • Kamil Trzcińśki's avatar
      Improve performance and memory usage of project export · 0e56c1e7
      Kamil Trzcińśki authored
      ActiveModel::Serialization is simple in that it recursively calls
      `as_json` on each object to serialize everything. However, for a model
      like a Project, this can generate a query for every single association,
      which can add up to tens of thousands of queries and lead to memory
      bloat.
      
      To improve this, we can do several things:
      
      1. We use `tree:` and `preload:` to automatically generate
         a list of all preloads that could be used to serialize
         objects in bulk.
      
      2. We observe that a single project has many issues, merge requests,
         etc. Instead of serializing everything at once, which could lead to
         database timeouts and high memory usage, we take each top-level
         association and serialize the data in batches.
      
      For example, we serialize the first 100 issues and preload all of
      their associated events, notes, etc. before moving onto the next
      batch. When we're done, we serialize merge requests in the same way.
      We repeat this pattern for the remaining associations specified in
      import_export.yml.
      0e56c1e7
    • Francisco Javier López's avatar
      Lower searches count limit · 107ebb82
      Francisco Javier López authored
      Lowering the limit when performing search from 1001 to 101.
      This will allow us to speed this process.
      107ebb82
    • drew's avatar
Loading