fix(live-state): cap recent_rows query at 50 to bound row count
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
309354942a
commit
9554661e5a
1 changed files with 1 additions and 0 deletions
|
|
@ -260,6 +260,7 @@ def live_state_fragment(server_id: int) -> Response:
|
|||
ServerPlayerSession.name_at_join,
|
||||
)
|
||||
.order_by(func.max(ServerPlayerSession.left_at).desc())
|
||||
.limit(50)
|
||||
).all()
|
||||
|
||||
recent_total = len(recent_rows)
|
||||
|
|
|
|||
Loading…
Reference in a new issue