1. 07 8月, 2016 2 次提交
  2. 02 7月, 2016 1 次提交
  3. 14 10月, 2015 1 次提交
    • Y
      applies new doc guidelines to Active Record. · 428d47ad
      Yves Senn 提交于
      The focus of this change is to make the API more accessible.
      References to method and classes should be linked to make it easy to
      navigate around.
      
      This patch makes exzessiv use of `rdoc-ref:` to provide more readable
      docs. This makes it possible to document `ActiveRecord::Base#save` even
      though the method is within a separate module
      `ActiveRecord::Persistence`. The goal here is to bring the API closer to
      the actual code that you would write.
      
      This commit only deals with Active Record. The other gems will be
      updated accordingly but in different commits. The pass through Active
      Record is not completely finished yet. A follow up commit will change
      the spots I haven't yet had the time to update.
      
      /cc @fxn
      428d47ad
  4. 19 11月, 2014 1 次提交
    • S
      Improve the performance of reading attributes · 08576b94
      Sean Griffin 提交于
      We added a comparison to "id", and call to `self.class.primary_key` a
      *lot*. We also have performance hits from `&block` all over the place.
      We skip the check in a new method, in order to avoid breaking the
      behavior of `read_attribute`
      08576b94
  5. 15 11月, 2014 1 次提交
    • S
      Reduce the amount of work performed when instantiating AR models · 0f29c216
      Sean Griffin 提交于
      We don't know which attributes will or won't be used, and we don't want
      to create massive bottlenecks at instantiation. Rather than doing *any*
      iteration over types and values, we can lazily instantiate the object.
      
      The lazy attribute hash should not fully implement hash, or subclass
      hash at any point in the future. It is not meant to be a replacement,
      but instead implement its own interface which happens to overlap.
      0f29c216
  6. 07 8月, 2014 1 次提交
  7. 26 6月, 2014 1 次提交
  8. 13 6月, 2014 2 次提交
    • S
      Use a conditional rather than early return in `id` · 607e335f
      Sean Griffin 提交于
      607e335f
    • S
      Fix performance regression on preloading HABTM associations · d82dafe6
      Sean Griffin 提交于
      We'd spend a lot of time calling `hash` and `eql?` on the join model,
      which has no primary key. Calling `id` with no primary key is a really
      slow way to get back `nil`, so we can improve the performance there.
      However, even with the escape clause, we *still* weren't getting high
      enough performance, as we were checking the primary key too much. `hash`
      will always return `nil.hash` for records with no id, and `==` will
      always return `false`. We can optimize those cases in the HABTM join
      model.
      d82dafe6
  9. 15 3月, 2013 1 次提交
  10. 20 2月, 2013 1 次提交
  11. 08 1月, 2013 1 次提交
  12. 22 9月, 2012 1 次提交
  13. 17 9月, 2012 2 次提交
  14. 28 3月, 2012 1 次提交
  15. 04 3月, 2012 1 次提交
  16. 17 2月, 2012 1 次提交
  17. 12 2月, 2012 1 次提交
  18. 06 1月, 2012 1 次提交
  19. 22 12月, 2011 1 次提交
  20. 16 12月, 2011 3 次提交
  21. 15 12月, 2011 1 次提交
  22. 14 12月, 2011 1 次提交
  23. 13 12月, 2011 1 次提交
  24. 02 12月, 2011 4 次提交
  25. 01 12月, 2011 3 次提交
  26. 30 11月, 2011 1 次提交
  27. 06 10月, 2011 1 次提交
  28. 05 10月, 2011 1 次提交
  29. 27 9月, 2011 1 次提交
  30. 06 8月, 2011 1 次提交