1. 01 5月, 2020 8 次提交
  2. 30 4月, 2020 5 次提交
  3. 29 4月, 2020 10 次提交
  4. 28 4月, 2020 2 次提交
    • R
      Improve performance for `scope_for_create` · b66235d4
      Ryuta Kamizono 提交于
      ```ruby
      class Post < ActiveRecord::Base
      end
      
      posts = Post.where(id: 1, title: "foo")
      
      Benchmark.ips do |x|
        x.report("scope_for_create") { posts.scope_for_create }
      end
      ```
      
      Before:
      
      ```
      Warming up --------------------------------------
          scope_for_create    30.125k i/100ms
      Calculating -------------------------------------
          scope_for_create    334.033k (± 4.4%) i/s -      1.687M in   5.060493s
      ```
      
      After:
      
      ```
      Warming up --------------------------------------
          scope_for_create    35.088k i/100ms
      Calculating -------------------------------------
          scope_for_create    388.603k (±11.8%) i/s -      1.930M in   5.080998s
      ```
      b66235d4
    • R
      Refactor Arel node `Casted`, `Quoted`, and `BindParam` · 280d6eb2
      Ryuta Kamizono 提交于
      Define `value_for_database` and `value_before_type_cast` methods, and
      use those.
      280d6eb2
  5. 27 4月, 2020 11 次提交
  6. 26 4月, 2020 3 次提交
  7. 25 4月, 2020 1 次提交