Skip to content

Commit 9e6e6ff

Browse files
authored
feat: limit members and org leaderboards to 100 results (IN-862) (#3606)
Signed-off-by: Gašper Grom <gasper.grom@gmail.com>
1 parent c3c9649 commit 9e6e6ff

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

services/libs/tinybird/pipes/leaderboards_copy.pipe

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ SQL >
3535
SELECT *, 0.0 as previousPeriodValue, 'resolution-rate' as leaderboardType
3636
FROM leaderboards_resolution_rate
3737
UNION ALL
38-
SELECT *, 'members' as leaderboardType
38+
SELECT *, 'contributors' as leaderboardType
3939
FROM leaderboards_members
4040
UNION ALL
4141
SELECT *, 'organizations' as leaderboardType

services/libs/tinybird/pipes/leaderboards_members.pipe

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,4 @@ SQL >
6363
LEFT JOIN leaderboards_members_previous_period pp ON p.id = pp.memberId
6464
WHERE c.memberActivityCount > 0
6565
ORDER BY value DESC
66+
LIMIT 100

services/libs/tinybird/pipes/leaderboards_organizations.pipe

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,4 @@ SQL >
6767
LEFT JOIN leaderboards_organizations_previous_period pp ON p.id = pp.organizationId
6868
WHERE c.organizationActivityCount > 0
6969
ORDER BY value DESC
70+
LIMIT 100

0 commit comments

Comments
 (0)