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

Removes the truncates and reduce the amount of seeded data #627

Merged
merged 2 commits into from
Jul 14, 2024
Merged

Conversation

pxpm
Copy link
Contributor

@pxpm pxpm commented Jul 13, 2024

WHY

BEFORE - What was wrong? What was happening before this PR?

Truncates are broken if you are using foreign keys and enforcing them.

Seeders shouldn't truncate the tables , at most they can have a circuit breaker to don't seed in certain scenarios.

Also reduce the seeders of 1M comments to 100k, I re-seed the database several times a day during tests and 99% of times I am not messing with those 1M records.

@pxpm pxpm merged commit ace0245 into main Jul 14, 2024
4 checks passed
@pxpm pxpm deleted the seeders-fixes branch July 14, 2024 13:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant