Skip to content

Remove redundant pre-existing linked edge filtering in LinkedEdgeGenerator - #687

Merged
SandeepTuniki merged 2 commits into
masterfrom
remove-redundant-linked-edge-filtering
Jul 28, 2026
Merged

Remove redundant pre-existing linked edge filtering in LinkedEdgeGenerator#687
SandeepTuniki merged 2 commits into
masterfrom
remove-redundant-linked-edge-filtering

Conversation

@SandeepTuniki

Copy link
Copy Markdown
Contributor

This PR removes some old code around pre-filtering of existing linked edges. This is no longer necessary as we now have a separate deletions step that runs before any aggregations.

…rator

Because AggregationOrchestrator invokes AggregationDeleter to delete all existing generated edges for active imports before calculations run, querying Spanner for existing linked edges and filtering against them in LinkedEdgeGenerator is redundant. Removing this filtering eliminates three global federated queries from BigQuery to Spanner on every pipeline run.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request simplifies the SQL queries in linked_edge_generator.py by removing the logic that pulls and filters out existing generated edges (such as linkedMemberOf, linkedContainedInPlace, and linkedMember). Instead, the queries now directly return the newly generated edges (NewEdges). There are no review comments provided, and I have no additional feedback on these changes.

@SandeepTuniki
SandeepTuniki requested a review from vish-cs July 25, 2026 10:32
@SandeepTuniki
SandeepTuniki merged commit f7ca76d into master Jul 28, 2026
11 checks passed
@SandeepTuniki
SandeepTuniki deleted the remove-redundant-linked-edge-filtering branch July 28, 2026 08:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants