Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve find-existing-acitivty query in data-sink-worker
This change makes it use: CREATE UNIQUE INDEX activities_tenant_segment_source_id_idx ON activities ("tenantId", "segmentId", "sourceId") WHERE ("deletedAt" IS NULL); instead of: CREATE UNIQUE INDEX ix_unique_activities_tenantid_platform_type_sourceid_segmentid ON activities ("tenantId", platform, type, "sourceId", "segmentId");
- Loading branch information