diff options
author | mattab <matthieu.aubry@gmail.com> | 2016-04-08 07:09:25 +0300 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2016-04-08 07:09:25 +0300 |
commit | faae0cde27c4425991f85af45fcce20e0a715c2c (patch) | |
tree | a3154744c1346d0f843f53e06738cc881f652f80 /plugins | |
parent | d2f83c70ed5bff6b9be7cf98a59bdc124dbe3d00 (diff) |
Select 10 times more rows so that resultset after grouping is more likely to contain enough records
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Live/Model.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/Live/Model.php b/plugins/Live/Model.php index 276061e14d..3f2312234a 100644 --- a/plugins/Live/Model.php +++ b/plugins/Live/Model.php @@ -408,6 +408,10 @@ class Model $orderBy .= "visit_last_action_time " . $filterSortOrder; $orderByParent = "sub.visit_last_action_time " . $filterSortOrder; + if (!$segment->isEmpty()) { + $limit = $limit * 10; + } + $subQuery = $segment->getSelectQuery($select, $from, $where, $whereBind, $orderBy, $groupBy, $limit, $offset); $bind = $subQuery['bind']; |