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

Normalize CR diff schema #61

Merged
merged 1 commit into from
Sep 3, 2023
Merged

Normalize CR diff schema #61

merged 1 commit into from
Sep 3, 2023

Conversation

lunakv
Copy link
Owner

@lunakv lunakv commented Sep 3, 2023

Instead of storing the entire diff contents in a JSONB blob (and an array for moves), this PR introduces a new table to the database that stores individual diff/move items. Apart from easier querying and general management of the data, one notable improvement is the evaluation of CR traces, which can now search through the indexed number columns of the new table instead of linearly scanning through all previous diffs. The trace functionality itself has been mostly replaced from a pure Python implementation into a single recursive Postgres query.

@lunakv lunakv merged commit e91ba38 into main Sep 3, 2023
3 checks passed
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.

1 participant