summaryrefslogtreecommitdiff
path: root/lib/api/api.rb
diff options
context:
space:
mode:
authorcatatsuy <catatsuy@catatsuy.org>2015-06-16 21:22:06 +0900
committercatatsuy <catatsuy@catatsuy.org>2015-07-02 21:28:31 +0900
commit87ac590078c6c219a8afb6feac6e41d75dca1287 (patch)
treeb99fe75bf39f7d89387fd6711a102dc2231dcd9c /lib/api/api.rb
parent7c42aaa5763e6028e6c004fa7f90a3c9b2d27ccc (diff)
downloadgitlab-ce-87ac590078c6c219a8afb6feac6e41d75dca1287.tar.gz
'created_at DESC' is performed twice
If you are already sorting in descending order in the created_at, it is run twice when you run the .recent. It has passed in the string 'created_at DESC'. Ruby on Rails is directly given to the SQL. It is a slow query in MySQL.
Diffstat (limited to 'lib/api/api.rb')
0 files changed, 0 insertions, 0 deletions