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:
@@ -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();
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user