Skip to content

Cleanup DB state after #7171 #10002

Open
Open
@geropl

Description

@geropl

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

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions