Skip to content

[DOP-39210] Rewrite LineageService#503

Merged
dolfinus merged 1 commit into
developfrom
improvement/DOP-39210
Jul 20, 2026
Merged

[DOP-39210] Rewrite LineageService#503
dolfinus merged 1 commit into
developfrom
improvement/DOP-39210

Conversation

@dolfinus

@dolfinus dolfinus commented Jul 18, 2026

Copy link
Copy Markdown
Member

Change Summary

Previously we fetched runs/operations/jobs/datasets/column_lineage and so on for each recursion level. Now we only jump over graph input -> output or input -> symlink -> output, save identifiers and load runs/operations/jobs/datasets/column_lineage only at the end. This reduces number of DB queries from O(depth) to O(1).

Related issue number

Checklist

  • Commit message and PR title is comprehensive
  • Keep the change as small as possible
  • Unit and integration tests for the changes exist
  • Tests pass on CI and coverage does not decrease
  • Documentation reflects the changes where applicable
  • mddocs/docs/changelog/next_release/<pull request or issue id>.<change type>.md file added describing change
    (see CONTRIBUTING.rst for details.)
  • My PR is ready to review.

@dolfinus
dolfinus force-pushed the improvement/DOP-39210 branch from f8dc84a to eee33dd Compare July 18, 2026 12:12
@dolfinus
dolfinus marked this pull request as ready for review July 18, 2026 12:14
@dolfinus
dolfinus requested a review from TiGrib July 18, 2026 12:15
@github-actions

github-actions Bot commented Jul 18, 2026

Copy link
Copy Markdown

Coverage

Coverage Report •
FileStmtsMissBranchBrPartCoverMissing
data_rentgen/server/services
   lineage.py38418172796%93, 179, 205, 217, 229->230, 230, 252->253, 253, 286, 395, 421, 433, 452->460, 475->483, 603, 628, 811, 837, 911, 950->exit, 984, 1040, 1063->1065, 1071->1073, 1088
TOTAL7646514129821292% 

@dolfinus dolfinus self-assigned this Jul 20, 2026
@dolfinus
dolfinus force-pushed the improvement/DOP-39210 branch 10 times, most recently from 5564755 to d7fd1d5 Compare July 20, 2026 11:37
@dolfinus
dolfinus force-pushed the improvement/DOP-39210 branch from d7fd1d5 to 09ff1f0 Compare July 20, 2026 12:20
@dolfinus
dolfinus merged commit b704962 into develop Jul 20, 2026
11 checks passed
@dolfinus
dolfinus deleted the improvement/DOP-39210 branch July 20, 2026 12:59
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