Skip to content

Conversation

themarolt
Copy link
Contributor

@themarolt themarolt commented Feb 7, 2024

Changes proposed ✍️

Optimize organization enrichment by enriching organizationCaches table instead of organizations table.

Explanation:

organizations table belongs to a tenant and is a copy of organizationCaches table which is a global table and is deduplicated. So we can have one organizationCaches entry that belongs to multiple tenants in organizations table.
So the optimization is that we will spend less enrichment credits because we will first enrich organizationCaches entry and then update all instances in organizations table with those enriched data.

How

Before we had one temporal schedule that triggered enrichment of organizations table entries and updated organizationCaches.
Now we have two temporal schedules: one triggers enrichment of organizationCaches tables and the other updates organizations table entries where needed.

Checklist ✅

  • Label appropriately with Feature, Improvement, or Bug.
  • Add screenshots to the PR description for relevant FE changes
  • New backend functionality has been unit-tested.
  • API documentation has been updated (if necessary) (see docs on API documentation).
  • Quality standards are met.

@themarolt themarolt added the Improvement Created by Linear-GitHub Sync label Feb 7, 2024
@themarolt themarolt merged commit 3c561c5 into main Feb 13, 2024
@themarolt themarolt deleted the enhancement/org-enrichment-optimizations-C-2906 branch February 13, 2024 07:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement Created by Linear-GitHub Sync
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants