ReviewOS

stacks/ts-analytics

SESSION# stats queries lack pagination/time filter -> silent 1MB truncation

#151
Closed glennmichael123 opened this 9 days ago ·
9 days ago

Severity: High · Where: stats.ts:65-74,248-255,317-324,383-390,435-442,482-489,534-541,983-990,1052-1059 Every SESSION# query uses begins_with(sk,'SESSION#') with no Limit and no ExclusiveStartKey loop → DynamoDB silently truncates at 1MB → wrong counts on busy sites. Fix: Paginate (see rollups.ts:97-119) or query the existing time-based GSI (Session.ts:229).

Sign in to comment on this issue.