• Sean McGivern's avatar
    Save a query on the todos index page · 063b9edc
    Sean McGivern authored
    When there are no filters, we can get the total todos count from the cached
    count on the user object, instead of performing a DB query. This query takes
    about 80ms for me on GitLab.com.
    063b9edc
todos_controller.rb 2.34 KB