1. 14 2月, 2017 4 次提交
  2. 13 2月, 2017 9 次提交
  3. 12 2月, 2017 2 次提交
  4. 11 2月, 2017 1 次提交
  5. 10 2月, 2017 2 次提交
    • R
      Fix `test_composite_primary_key_out_of_order` · 283250fc
      Ryuta Kamizono 提交于
      `test_composite_primary_key_out_of_order` should use `barcodes_reverse`
      table.
      283250fc
    • J
      Simplify and speed up Postgres query for primary_keys · d6529af2
      Jordan Lewis 提交于
      primary_keys(table) needs to query various metadata tables in Postgres to
      determine the primary key for the table. Previously, it did so using a
      complex common table expression against pg_constraint and pg_attribute.
      
      This patch simplifies the query by joining pg_index against pg_attribute
      instead of going through pg_constraint. This avoids an expensive unnest,
      window function query, and common table expression.
      
      EXPLAINing these queries in Postgres against a database with a single
      table with a composite primary key shows a 66% reduction in the plan and
      execute latencies. This is significant during application startup time,
      especially against very large schemas, where these queries would be even
      slower and more numerous.
      
      Closes #27949
      d6529af2
  6. 09 2月, 2017 3 次提交
  7. 07 2月, 2017 7 次提交
  8. 06 2月, 2017 2 次提交
  9. 04 2月, 2017 5 次提交
  10. 03 2月, 2017 1 次提交
    • D
      Fix collection_singular_ids= bug · 796d8599
      Daniel Colson 提交于
      When the association's primary key is manually set as a symbol and called with an array of strings, CollectionAssociation#ids_writer
      fails to cast the ids to integers. This is because
      AssociationReflection#association_primary_key_type and
      ThroughReflection#association_primary_key_type return the incorrect
      type, since ModelSchema.type_for_attribute only accepts a string. The
      result is an ActiveRecord::RecordNotFound error.
      796d8599
  11. 02 2月, 2017 2 次提交
  12. 01 2月, 2017 2 次提交