Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ where msa."segmentId" IN (
where "grandparentId" is not null
and "parentId" is not null
)
group by msa."memberId"
order by sum(msa."activityCount") desc;
group by msa."memberId";
create unique index ix_member_global_activity_count_member_id on "membersGlobalActivityCount" ("memberId");
create index ix_member_global_activity_count on "membersGlobalActivityCount" (total_count);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ export async function getObsoleteSourcesOfMember(
}

export async function refreshMemberEnrichmentMaterializedView(mvName: string): Promise<void> {
await refreshMaterializedView(svc.postgres.writer.connection(), mvName)
await refreshMaterializedView(svc.postgres.writer.connection(), mvName, true)
}

interface IWorkExperienceChanges {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@ import { MemberEnrichmentMaterializedView } from '@crowd/types'
import * as activities from '../activities'

const { refreshMemberEnrichmentMaterializedView } = proxyActivities<typeof activities>({
startToCloseTimeout: '10 minutes',
startToCloseTimeout: '45 minutes',
retry: {
initialInterval: '15 seconds',
backoffCoefficient: 2,
maximumAttempts: 3,
},
})

export async function refreshMemberEnrichmentMaterializedViews(): Promise<void> {
Expand Down
Loading