1. 29 7月, 2019 1 次提交
  2. 26 7月, 2019 1 次提交
  3. 23 7月, 2019 1 次提交
  4. 22 3月, 2019 1 次提交
  5. 14 3月, 2019 1 次提交
  6. 12 2月, 2019 2 次提交
  7. 16 12月, 2018 1 次提交
  8. 15 12月, 2018 1 次提交
  9. 27 11月, 2018 1 次提交
  10. 24 7月, 2018 1 次提交
  11. 07 7月, 2018 1 次提交
  12. 14 6月, 2018 1 次提交
  13. 18 5月, 2018 1 次提交
  14. 16 3月, 2018 2 次提交
  15. 06 12月, 2017 1 次提交
  16. 02 12月, 2017 1 次提交
  17. 08 11月, 2017 1 次提交
    • Y
      Add returning IDs to Gitlab::Database.bulk_insert · bda30182
      Yorick Peterse 提交于
      This adds the keyword argument "return_ids" to
      Gitlab::Database.bulk_insert. When set to `true` (and PostgreSQL is
      used) this method will return an Array of the IDs of the inserted rows,
      otherwise it will return an empty Array.
      bda30182
  18. 31 10月, 2017 1 次提交
  19. 10 8月, 2017 1 次提交
    • Y
      Use a specialized class for querying events · aac1de46
      Yorick Peterse 提交于
      This changes various controllers to use the new EventCollection class
      for retrieving events. This class uses a JOIN LATERAL query on
      PostgreSQL to retrieve queries in a more efficient way, while falling
      back to a simpler / less efficient query for MySQL.
      
      The EventCollection class also includes a limit on the number of events
      to display to prevent malicious users from cycling through all events,
      as doing so could put a lot of pressure on the database.
      
      JOIN LATERAL is only supported on PostgreSQL starting with version 9.3.0
      and as such this optimisation is only used when using PostgreSQL 9.3 or
      newer.
      aac1de46
  20. 27 7月, 2017 1 次提交
  21. 27 6月, 2017 1 次提交
  22. 21 6月, 2017 1 次提交
  23. 17 6月, 2017 1 次提交
    • S
      Add table for files in merge request diffs · 9a73b634
      Sean McGivern 提交于
      This adds an ID-less table containing one row per file, per merge request
      diff. It has a column for each attribute on Gitlab::Git::Diff that is serialised
      currently, with the advantage that we can easily query the attributes of this
      new table.
      
      It does not migrate existing data, so we have fallback code when the legacy
      st_diffs column is present instead. For a merge request diff to be valid, it
      should have at most one of:
      
      * Rows in this new table, with the correct merge_request_diff_id.
      * A non-NULL st_diffs column.
      
      It may have neither, if the diff is empty.
      9a73b634
  24. 15 6月, 2017 1 次提交
  25. 12 4月, 2017 1 次提交
  26. 18 3月, 2017 1 次提交
    • Y
      Added Gitlab::Database.config · 9a20ff1c
      Yorick Peterse 提交于
      This returns the ActiveRecord configuration for the current environment.
      
      While CE doesn't use this very often, EE will use it in a few places for
      the database load balancing code. I'm adding this to CE so we don't end
      up with merge conflicts in this file.
      9a20ff1c
  27. 23 2月, 2017 4 次提交
  28. 22 2月, 2017 1 次提交
    • Y
      Allow setting of a custom connection pool host · cf521c95
      Yorick Peterse 提交于
      This allows you to set a custom host when calling
      Gitlab::Database.create_connection_pool. This is necessary for load
      balancing as in this case we want to inherit all settings except for the
      hostname.
      cf521c95
  29. 14 2月, 2017 2 次提交
  30. 07 2月, 2017 1 次提交
  31. 07 6月, 2016 1 次提交
  32. 16 2月, 2016 1 次提交
  33. 03 2月, 2016 1 次提交
  34. 09 12月, 2015 1 次提交