-
Notifications
You must be signed in to change notification settings - Fork 514
various new clickhouse syncs #1267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 18 commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
3c88950
clickhouse contact channel, team, and team member tables
BilalG1 9f9c9a4
clickhouse sync email outbox table
BilalG1 008c6b0
clickhouse sync session replays
BilalG1 10b2f19
fix analytics query test
BilalG1 ab778e1
add email outbox cols
BilalG1 3edc7f1
Merge branch 'dev' into clickhouse-sync-extra-tables
BilalG1 062b15e
Merge branch 'clickhouse-sync-extra-tables' into clickhouse-sync-emai…
BilalG1 e82a684
Merge branch 'clickhouse-sync-email-outbox-table' into clickhouse-syn…
BilalG1 e23c673
team member profile clickhouse table
BilalG1 823036b
Merge branch 'clickhouse-sync-extra-tables' of https://github.com/sta…
BilalG1 60e9b86
team member and team invite clickhouse tables
BilalG1 a1417f6
Merge remote-tracking branch 'origin/clickhouse-sync-team-member-and-…
BilalG1 3896f62
analytics query update test
BilalG1 7d797b5
Merge remote-tracking branch 'origin/clickhouse-sync-email-outbox-tab…
BilalG1 57176ab
update session replays table
BilalG1 66cff4d
clickhouse sync project permissions and notifications
BilalG1 bf008e2
clickhouse sync session and connected accounts
BilalG1 2bd11cb
clickhouse improve sync speed
BilalG1 d9503fb
remove extra comments
BilalG1 b969f45
Merge branch 'dev' into clickhouse-sync-improve-test-speed
BilalG1 b6f3f30
merge origin/dev
BilalG1 98ba678
pr comment fixes
BilalG1 82fabef
Merge branch 'dev' into clickhouse-sync-improve-test-speed
BilalG1 8111f4e
Merge branch 'dev' into clickhouse-sync-improve-test-speed
BilalG1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
...kend/prisma/migrations/20260316000000_add_team_team_member_sequence_columns/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "Team" ADD COLUMN "sequenceId" BIGINT, | ||
| ADD COLUMN "shouldUpdateSequenceId" BOOLEAN NOT NULL DEFAULT true; | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "Team_sequenceId_key" ON "Team"("sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "Team_tenancyId_sequenceId_idx" ON "Team"("tenancyId", "sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "Team_shouldUpdateSequenceId_idx" ON "Team"("shouldUpdateSequenceId", "tenancyId"); | ||
|
|
||
| -- AlterTable | ||
| ALTER TABLE "TeamMember" ADD COLUMN "sequenceId" BIGINT, | ||
| ADD COLUMN "shouldUpdateSequenceId" BOOLEAN NOT NULL DEFAULT true; | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "TeamMember_sequenceId_key" ON "TeamMember"("sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "TeamMember_tenancyId_sequenceId_idx" ON "TeamMember"("tenancyId", "sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "TeamMember_shouldUpdateSequenceId_idx" ON "TeamMember"("shouldUpdateSequenceId", "tenancyId"); | ||
12 changes: 12 additions & 0 deletions
12
.../backend/prisma/migrations/20260316000001_add_email_outbox_sequence_columns/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "EmailOutbox" ADD COLUMN "sequenceId" BIGINT, | ||
| ADD COLUMN "shouldUpdateSequenceId" BOOLEAN NOT NULL DEFAULT true; | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "EmailOutbox_sequenceId_key" ON "EmailOutbox"("sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "EmailOutbox_tenancyId_sequenceId_idx" ON "EmailOutbox"("tenancyId", "sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "EmailOutbox_shouldUpdateSequenceId_idx" ON "EmailOutbox"("shouldUpdateSequenceId", "tenancyId"); | ||
|
BilalG1 marked this conversation as resolved.
Outdated
|
||
12 changes: 12 additions & 0 deletions
12
...ackend/prisma/migrations/20260316000002_add_session_replay_sequence_columns/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "SessionReplay" ADD COLUMN "sequenceId" BIGINT, | ||
| ADD COLUMN "shouldUpdateSequenceId" BOOLEAN NOT NULL DEFAULT true; | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "SessionReplay_sequenceId_key" ON "SessionReplay"("sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "SessionReplay_tenancyId_sequenceId_idx" ON "SessionReplay"("tenancyId", "sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "SessionReplay_shouldUpdateSequenceId_idx" ON "SessionReplay"("shouldUpdateSequenceId", "tenancyId"); | ||
|
BilalG1 marked this conversation as resolved.
Outdated
|
||
22 changes: 22 additions & 0 deletions
22
...a/migrations/20260317000000_add_team_permission_invitation_sequence_columns/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "TeamMemberDirectPermission" ADD COLUMN "sequenceId" BIGINT, | ||
| ADD COLUMN "shouldUpdateSequenceId" BOOLEAN NOT NULL DEFAULT true; | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "TeamMemberDirectPermission_sequenceId_key" ON "TeamMemberDirectPermission"("sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "TeamMemberDirectPermission_shouldUpdateSequenceId_idx" ON "TeamMemberDirectPermission"("shouldUpdateSequenceId", "tenancyId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "TeamMemberDirectPermission_tenancyId_sequenceId_idx" ON "TeamMemberDirectPermission"("tenancyId", "sequenceId"); | ||
|
|
||
| -- AlterTable | ||
| ALTER TABLE "VerificationCode" ADD COLUMN "sequenceId" BIGINT, | ||
| ADD COLUMN "shouldUpdateSequenceId" BOOLEAN NOT NULL DEFAULT true; | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "VerificationCode_sequenceId_key" ON "VerificationCode"("sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "VerificationCode_shouldUpdateSequenceId_type_idx" ON "VerificationCode"("shouldUpdateSequenceId", "type"); | ||
|
BilalG1 marked this conversation as resolved.
Outdated
|
||
25 changes: 25 additions & 0 deletions
25
...60317000001_add_project_permission_notification_preference_sequence_columns/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "ProjectUserDirectPermission" ADD COLUMN "sequenceId" BIGINT, | ||
| ADD COLUMN "shouldUpdateSequenceId" BOOLEAN NOT NULL DEFAULT true; | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "ProjectUserDirectPermission_sequenceId_key" ON "ProjectUserDirectPermission"("sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "ProjectUserDirectPermission_shouldUpdateSequenceId_idx" ON "ProjectUserDirectPermission"("shouldUpdateSequenceId", "tenancyId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "ProjectUserDirectPermission_tenancyId_sequenceId_idx" ON "ProjectUserDirectPermission"("tenancyId", "sequenceId"); | ||
|
|
||
| -- AlterTable | ||
| ALTER TABLE "UserNotificationPreference" ADD COLUMN "sequenceId" BIGINT, | ||
| ADD COLUMN "shouldUpdateSequenceId" BOOLEAN NOT NULL DEFAULT true; | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "UserNotificationPreference_sequenceId_key" ON "UserNotificationPreference"("sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "UserNotificationPreference_shouldUpdateSequenceId_idx" ON "UserNotificationPreference"("shouldUpdateSequenceId", "tenancyId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "UserNotificationPreference_tenancyId_sequenceId_idx" ON "UserNotificationPreference"("tenancyId", "sequenceId"); | ||
|
BilalG1 marked this conversation as resolved.
Outdated
|
||
25 changes: 25 additions & 0 deletions
25
...rations/20260318000000_add_sequence_id_to_refresh_tokens_and_oauth_accounts/migration.sql
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| -- AlterTable | ||
| ALTER TABLE "ProjectUserRefreshToken" ADD COLUMN "sequenceId" BIGINT, | ||
| ADD COLUMN "shouldUpdateSequenceId" BOOLEAN NOT NULL DEFAULT true; | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "ProjectUserRefreshToken_sequenceId_key" ON "ProjectUserRefreshToken"("sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "ProjectUserRefreshToken_shouldUpdateSequenceId_idx" ON "ProjectUserRefreshToken"("shouldUpdateSequenceId", "tenancyId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "ProjectUserRefreshToken_tenancyId_sequenceId_idx" ON "ProjectUserRefreshToken"("tenancyId", "sequenceId"); | ||
|
|
||
| -- AlterTable | ||
| ALTER TABLE "ProjectUserOAuthAccount" ADD COLUMN "sequenceId" BIGINT, | ||
| ADD COLUMN "shouldUpdateSequenceId" BOOLEAN NOT NULL DEFAULT true; | ||
|
|
||
| -- CreateIndex | ||
| CREATE UNIQUE INDEX "ProjectUserOAuthAccount_sequenceId_key" ON "ProjectUserOAuthAccount"("sequenceId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "ProjectUserOAuthAccount_shouldUpdateSequenceId_idx" ON "ProjectUserOAuthAccount"("shouldUpdateSequenceId", "tenancyId"); | ||
|
|
||
| -- CreateIndex | ||
| CREATE INDEX "ProjectUserOAuthAccount_tenancyId_sequenceId_idx" ON "ProjectUserOAuthAccount"("tenancyId", "sequenceId"); | ||
|
BilalG1 marked this conversation as resolved.
Outdated
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.