diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2015-11-03 11:54:43 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2015-11-03 11:54:43 +0100 |
commit | 732f5380af5d688a152de9c5b4bb14ffb935dd2a (patch) | |
tree | b9ff6053f1487d1abd98a300be8d586ea946177b /lib/api/files.rb | |
parent | 0df65909eff560f2d313c4034ed21a65d643a0c3 (diff) | |
download | gitlab-ce-732f5380af5d688a152de9c5b4bb14ffb935dd2a.tar.gz |
Only sort by IDs by default
Sorting by both "created_at" and "id" in descending order is not needed
as simply sorting by "id" in descending order will already sort rows
from new to old. Depending on the query and data involved sorting twice
can also introduce significant overhead.
Diffstat (limited to 'lib/api/files.rb')
0 files changed, 0 insertions, 0 deletions