Improve performance on derivation group subscription - #1976
Open
JosephVolosin wants to merge 2 commits into
Open
Improve performance on derivation group subscription#1976JosephVolosin wants to merge 2 commits into
JosephVolosin wants to merge 2 commits into
Conversation
JosephVolosin
had a problem deploying
to
test-workflow
July 21, 2026 19:51 — with
GitHub Actions
Failure
JosephVolosin
had a problem deploying
to
test-workflow
July 21, 2026 20:18 — with
GitHub Actions
Failure
JosephVolosin
force-pushed
the
fix/improve-derivation-group-load
branch
from
July 21, 2026 20:45
e8c5211 to
c095697
Compare
JosephVolosin
temporarily deployed
to
test-workflow
July 21, 2026 20:45 — with
GitHub Actions
Inactive
|
JosephVolosin
temporarily deployed
to
test-workflow
July 21, 2026 20:51 — with
GitHub Actions
Inactive
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.



This PR modifies the derivation group subscription to remove the external event count lookups. The change removes the aggregation count from the main Hasura subscription and adds it as a standalone query,
GET_EXTERNAL_SOURCE_EXTERNAL_EVENT_COUNTS.In our LRO deployment, we have been collecting live external event data for multiple months. These in total make up approx. 1 million external events across ~1,200 external sources. At this size, the subscription is very slow to complete and will hold up the UI. This is most notable in the 'Manage Derivation Group' modal in the plan view which will show 'No Derivation Groups' for an extended period of time while the subscription retrieves the source information. With some rough estimates using our data set, the current subscription takes approx. 90 seconds. With the change, the derivation group subscription takes approx. 3 seconds.
The event count can still be a helpful tool so to cover that this PR adds a new query,
GET_EXTERNAL_SOURCE_EXTERNAL_EVENT_COUNTSwhich is called in the new componentExternalSourceDetails.svelteto gather the counts for the specific external source the component is created for. This component fulfills the same role as some prior code that was copy/pasted between the places the derivation group information was used.Testing
External Sourcespanel and clickManage Derivation GroupsNote there is some e2e test changes included as the common component now enforces a time format that doesn't match how some of these components formatted times previously.