You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 memory
Do it in goroutine try like this
func GenerateData() []domain.User{}{
var wg sync.WaitGroup
users := []domain.User{}
for i := 0; i < 10000; i++ {
wg.Add(1)
go func(no int) {
defer wg.Done()
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: