Skip to content

Commit

Permalink
feat(statistics): improve game stats performance (#5192)
Browse files Browse the repository at this point in the history
* fix(statistics) Directly query match2game table

* Fix comment
  • Loading branch information
mbergen authored Dec 16, 2024
1 parent 2c4d972 commit f8513ec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/statistics/count.lua
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function Count.match2(args)
end


---Counts the number of matches played on a wiki - querying lpdb_match2
---Counts the number of matches played on a wiki - querying lpdb_match2game
---@param args table?
---@return integer
function Count.match2game(args)
Expand Down
2 changes: 1 addition & 1 deletion components/statistics/portal_statistics.lua
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ function StatisticsPortal._coverageMatchTableRow(args, parameters)
local gameCountValue

if Info.config.match2.status == 2 then
matchCountValue = Count.match2gamesData(parameters)
matchCountValue = Count.match2game(parameters)
gameCountValue = Count.match2(parameters)
else
matchCountValue = Count.matches(parameters)
Expand Down

0 comments on commit f8513ec

Please sign in to comment.