-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Open
Labels
aspect: performanceanything related to performanceanything related to performanceaspect: tech-debtIssues related to engineering tech debtIssues related to engineering tech debtcomponent: dbmeta: never-staleThis issue can never become staleThis issue can never become staletype: improvementImproves an existing feature or existing codeImproves an existing feature or existing code
Description
Original issue: #7171
It seems we still have some users with a bad DB state. We should cleanup those duplicates.
Identify users by counting subscriptions per user, and display those with more than 10 should turn up the one in bad state.
select count(distinct userId) users
from (
select
userId,
count(*) as subscriptions
from src_db_prod.subscriptions
group by 1
having subscriptions >= 1000
)
Metadata
Metadata
Assignees
Labels
aspect: performanceanything related to performanceanything related to performanceaspect: tech-debtIssues related to engineering tech debtIssues related to engineering tech debtcomponent: dbmeta: never-staleThis issue can never become staleThis issue can never become staletype: improvementImproves an existing feature or existing codeImproves an existing feature or existing code
Type
Projects
Status
No status