Skip to content

Commit

Permalink
Address performance issue with large schedules
Browse files Browse the repository at this point in the history
  • Loading branch information
Simbiat committed Dec 5, 2024
1 parent 20dd4bb commit c27dd1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Agent.php
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ private function getTasks(int $items): bool|array
':limit' => [$items, 'int'],
#Using this approach seems to be the best solution so far, so that no temporary tables are used (or smaller ones, at least), and it is still relatively performant.
#In worst case scenario tested with 8mil+ records in schedule the query took 1.5 minute, which was happening while there are other queries running on same table at the same time.
#On smaller (and more realistic) data sets performance hit is negligible.
#On smaller (and more realistic) data sets performance hit is negligible.
':innerlimit' => [$items * 2, 'int']
]);
} catch (\Throwable $exception) {
Expand Down

0 comments on commit c27dd1b

Please sign in to comment.