Skip to content

Conversation

@BuonOmo
Copy link
Collaborator

@BuonOmo BuonOmo commented Jan 22, 2025

Avoid 87% of the #disable_referential_integrity calls made
in fixture setup by just trying first without disabling and
just disabling in case of failure. Also batch foreign keys
removals and addition (for clarity only).

Avoid 87% of the `#disable_referential_integrity` calls made
in fixture setup by just trying first without disabling and
just disabling in case of failure. Also batch foreign keys
removals and addition (for clarity only).
@BuonOmo BuonOmo force-pushed the keep-ref-integrity-sometimes branch from bd76073 to 4aa5017 Compare January 22, 2025 15:30
@BuonOmo BuonOmo changed the title tmp: try to keep ref integrity refactor(fixtures): Avoid disabling referential integrity Jan 22, 2025
@BuonOmo BuonOmo marked this pull request as ready for review January 22, 2025 15:31
@BuonOmo BuonOmo requested a review from rafiss January 22, 2025 15:31
Copy link
Contributor

@rafiss rafiss left a comment

Choose a reason for hiding this comment

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

nice idea! it's great to see the tests this fast now.

@BuonOmo BuonOmo merged commit 56a37d8 into master Jan 27, 2025
4 checks passed
@BuonOmo BuonOmo deleted the keep-ref-integrity-sometimes branch January 27, 2025 09:07
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