1. 15 10月, 2015 1 次提交
    • Y
      Improve performance of User.by_login · 72f428c7
      Yorick Peterse 提交于
      Performance is improved in two steps:
      
      1. On PostgreSQL an expression index is used for checking lower(email)
         and lower(username).
      2. The check to determine if we're searching for a username or Email is
         moved to Ruby. Thanks to @haynes for suggesting and writing the
         initial implementation of this.
      
      Moving the check to Ruby makes this method an additional 1.5 times
      faster compared to doing the check in the SQL query.
      
      With performance being improved I've now also tweaked the amount of
      iterations required by the User.by_login benchmark. This method now runs
      between 900 and 1000 iterations per second.
      72f428c7
  2. 06 10月, 2015 1 次提交
  3. 05 10月, 2015 2 次提交
  4. 03 10月, 2015 1 次提交
  5. 02 10月, 2015 1 次提交
  6. 30 9月, 2015 2 次提交
  7. 26 9月, 2015 1 次提交
  8. 16 9月, 2015 1 次提交
  9. 06 9月, 2015 1 次提交
  10. 27 8月, 2015 1 次提交
  11. 22 8月, 2015 1 次提交
  12. 20 8月, 2015 1 次提交
  13. 04 8月, 2015 1 次提交
  14. 03 8月, 2015 1 次提交
  15. 30 7月, 2015 1 次提交
  16. 29 7月, 2015 1 次提交
  17. 28 7月, 2015 1 次提交
  18. 24 7月, 2015 1 次提交
  19. 14 7月, 2015 1 次提交
  20. 11 7月, 2015 1 次提交
  21. 24 6月, 2015 2 次提交
  22. 23 6月, 2015 1 次提交
  23. 21 6月, 2015 1 次提交
  24. 20 6月, 2015 3 次提交
  25. 18 6月, 2015 1 次提交
  26. 16 6月, 2015 2 次提交
  27. 14 6月, 2015 1 次提交
  28. 09 6月, 2015 1 次提交
  29. 29 5月, 2015 1 次提交
  30. 28 5月, 2015 2 次提交
  31. 27 5月, 2015 2 次提交
  32. 11 5月, 2015 1 次提交