-
-
Notifications
You must be signed in to change notification settings - Fork 33
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
Performance issue when generating 10k elements in array #42
Comments
Do it in goroutine try like this
} |
Interesting. Will need a focus weekend to work on this. I'll pick up and investigate whenever I'm free. But if you have the fixes, please help raise the PR whenever you're ready. |
Problem
Hello first of all thanks for the great library! it is really useful
Im using faker to seed my local database and i want to generate 10k elements the issue is if i use fakers default method
faker.FakeData
it hangs & takes up all of my memoryBut if i do it manually like this it finishes in under 1 second
here is the full code & the models
domain.go
main.go
The text was updated successfully, but these errors were encountered: