This commit is contained in:
salam committed 2026-09-11 17:32:24 +02:00
1 parent 7708a4a935
commit 43d1c091b3
9 files changed
+165 -344

No files matched your search

+5 -4
View File
@@ -80,7 +80,7 @@ trait UpdateHelper
};
}
protected function startBenchmark(string $table = 'sofa_score_player_per_seasons'): void
protected function startBenchmark(string $table = 'ss_player_seasons'): void
{
$this->startRowCount = DB::table($table)->count();
$this->benchmarkStartTime = microtime(true);
@@ -89,7 +89,7 @@ trait UpdateHelper
$this->startQueries = DB::select("SHOW SESSION STATUS LIKE 'Questions'")[0]->Value;
}
protected function endBenchmark(string $table = 'sofa_score_player_per_seasons'): void
protected function endBenchmark(string $table = 'ss_player_seasons'): void
{
$executionTime = microtime(true) - $this->benchmarkStartTime;
$memoryUsage = round((memory_get_usage() - $this->benchmarkStartMemory) / 1024 / 1024, 2);
@@ -195,14 +195,15 @@ trait UpdateHelper
$collection_1d[] = $row;
}
}
SofaScorePlayerPerSeason::upsert(
$collection_1d,
[
uniqueBy: [
'ss_player_id',
'ss_team_id',
'season',
],
[
update: [
'total_events',
'total_min',
'average_min',