mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-09 20:30:54 -05:00
Optimize user builds loading by x12.5
This commit is contained in:
parent
fa83790dff
commit
818a85678e
|
|
@ -118,11 +118,12 @@ with "Top500Weapon" as (
|
|||
"BuildWeapon".*,
|
||||
min("XRankPlacement"."rank") as "minRank",
|
||||
max("XRankPlacement"."power") as "maxPower"
|
||||
from
|
||||
"BuildWeapon"
|
||||
from "Build"
|
||||
left join "BuildWeapon" on "BuildWeapon"."buildId" = "Build"."id"
|
||||
left join "SplatoonPlayer" on "SplatoonPlayer"."userId" = @userId
|
||||
left join "XRankPlacement" on "XRankPlacement"."playerId" = "SplatoonPlayer"."id"
|
||||
and "XRankPlacement"."weaponSplId" = "BuildWeapon"."weaponSplId"
|
||||
where "Build"."ownerId" = @userId
|
||||
group by
|
||||
"BuildWeapon"."buildId",
|
||||
"BuildWeapon"."weaponSplId"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user