Skip to content

Cleanup DB state after #7171 #10002

@geropl

Description

@geropl
Member

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
         )

Activity

moved this to Scheduled in 🍎 WebApp Teamon May 30, 2022
stale

stale commented on Aug 11, 2022

@stale

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

added
meta: staleThis issue/PR is stale and will be closed soon
on Aug 11, 2022
Repository owner moved this from Scheduled to In Validation in 🍎 WebApp Teamon Sep 30, 2022
easyCZ

easyCZ commented on Oct 5, 2022

@easyCZ
Member

@geropl This got auto-closed. Should we re-open?

reopened this on Oct 5, 2022
Repository owner moved this from In Validation to Scheduled in 🍎 WebApp Teamon Oct 5, 2022
added and removed
meta: staleThis issue/PR is stale and will be closed soon
on Oct 5, 2022
moved this from Scheduled to No status in 🍎 WebApp Teamon Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @easyCZ@geropl

        Issue actions

          Cleanup DB state after #7171 · Issue #10002 · gitpod-io/gitpod