Avoid ordering just by a timestamp

Try to also employ an id when possible.
Involves reworking some of the indices.
This commit is contained in:
Alexei Sorokin
2020-09-15 16:59:27 +03:00
committed by Diogo Peralta Cordeiro
parent ae4f3176b1
commit a0f72fe5c6
41 changed files with 633 additions and 656 deletions

View File

@@ -45,7 +45,7 @@ function testAllUsers($filter, $minimum, $percent)
do {
$user = new User();
$user->orderBy('created');
$user->orderBy('created, id');
$user->limit($offset, $limit);
$found = $user->find();

View File

@@ -16,8 +16,6 @@
// along with GNU social. If not, see <http://www.gnu.org/licenses/>.
/**
* Description of this file.
*
* @package GNUsocial
* @copyright 2012 StatusNet, Inc.
* @license https://www.gnu.org/licenses/agpl.html GNU AGPL v3 or later
@@ -48,7 +46,7 @@ function testAllUsers($filter)
do {
$user = new User();
$user->orderBy('created');
$user->orderBy('created, id');
$user->limit($offset, $limit);
$found = $user->find();