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

[feature request] Option to load fixtures in bulk rather than row by row. #868

Open
leahrivkin opened this issue Jul 14, 2023 · 0 comments

Comments

@leahrivkin
Copy link

The current implementation of dbfixture loads each fixture, then each row 1 by 1. This can get slow if you want to load large fixture files to have lots of data

Proposal: Update fixture YAML so you can run operations in bulk rather than individually

type fixtureConfig struct {
	Bulk bool `yaml:"bulk"`
}
type fixtureData struct {
	Model  string        `yaml:"model"`
	Config fixtureConfig `yaml:"config"`
	Rows   []row         `yaml:"rows"`
}
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

No branches or pull requests

1 participant