Skip to content
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

perf(ui-ingestion): cache on creation or deletion of ingestion sources to reduce latency #6647

Conversation

aditya-radhakrishnan
Copy link
Contributor

@aditya-radhakrishnan aditya-radhakrishnan commented Dec 6, 2022

Videos

Adding a Source
https://user-images.githubusercontent.com/19418814/205800167-75b8c351-1053-4718-91e2-3214e897842a.mov

Invalidating Cache on Add Failure
https://user-images.githubusercontent.com/19418814/205808636-ede4e509-36d9-4ffa-87f4-def7c8f26bb5.mov

Deleting a Source
https://user-images.githubusercontent.com/19418814/205800737-d035845b-50b2-4550-a89d-0db195c41985.mov

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable). If a new feature has been added a Usage Guide has been added for the same.
  • For any breaking change/potential downtime/deprecation/big changes an entry has been made in Updating DataHub

@github-actions github-actions bot added the product PR or Issue related to the DataHub UI/UX label Dec 6, 2022
@aditya-radhakrishnan aditya-radhakrishnan force-pushed the ar--12-05-cache-managed-ingestion branch from 1e2a84d to 18a6c7f Compare December 6, 2022 03:07
@github-actions
Copy link

github-actions bot commented Dec 6, 2022

Unit Test Results (build & test)

622 tests  ±0   618 ✔️ ±0   15m 35s ⏱️ -12s
158 suites ±0       4 💤 ±0 
158 files   ±0       0 ±0 

Results for commit 3cef938. ± Comparison against base commit 88d2d9b.

♻️ This comment has been updated with latest results.

@aditya-radhakrishnan aditya-radhakrishnan force-pushed the ar--12-05-cache-managed-ingestion branch from 18a6c7f to 3cef938 Compare December 6, 2022 03:54
@@ -197,6 +200,19 @@ export const IngestionSourceList = () => {
});
} else {
// Create
const newSource = {
urn: PLACEHOLDER_URN,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So we still do the 3 second timeout? To refetch. I bet if we return the URN from the createSource call we wouldn't even need that followup

Copy link
Collaborator

@jjoyce0510 jjoyce0510 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it looks good. In the future we could push further by removing the need to even refetch after 3 seconds. (by updating the cache when createIngestionSource returns)

@aditya-radhakrishnan aditya-radhakrishnan merged commit 7065971 into datahub-project:master Dec 6, 2022
cccs-Dustin pushed a commit to CybercentreCanada/datahub that referenced this pull request Feb 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
product PR or Issue related to the DataHub UI/UX
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants