Changeset View
Changeset View
Standalone View
Standalone View
src/applications/system/engine/PhabricatorSystemActionEngine.php
| Show First 20 Lines • Show All 147 Lines • ▼ Show 20 Lines | foreach ($actors as $actor) { | ||||
| $score, | $score, | ||||
| time()); | time()); | ||||
| } | } | ||||
| foreach (PhabricatorLiskDAO::chunkSQL($sql) as $chunk) { | foreach (PhabricatorLiskDAO::chunkSQL($sql) as $chunk) { | ||||
| queryfx( | queryfx( | ||||
| $conn_w, | $conn_w, | ||||
| 'INSERT INTO %T (actorHash, actorIdentity, action, score, epoch) | 'INSERT INTO %T (actorHash, actorIdentity, action, score, epoch) | ||||
| VALUES %Q', | VALUES %LQ', | ||||
| $log->getTableName(), | $log->getTableName(), | ||||
| $chunk); | $chunk); | ||||
| } | } | ||||
| } | } | ||||
| private static function getWindow() { | private static function getWindow() { | ||||
| // Limit queries to the last hour of data so we don't need to look at as | // Limit queries to the last hour of data so we don't need to look at as | ||||
| // many rows. We can use an arbitrarily larger window instead (we normalize | // many rows. We can use an arbitrarily larger window instead (we normalize | ||||
| Show All 37 Lines | |||||