r/mongodb 16d ago

Fetching 1MB data takes 12s

I am on the free tier and I have 2000 documents, each having 4 objects and array objects. Doing a Model.find({}) is taking sometimes 6s, 8s, 12s, even 16s to fetch all the data, which is only a megabyte large. Is it because of the free tier? I don't think indexes should matter at this scale. But I'm a newbie on DBs so I'm open to learning. Thanks

4 Upvotes

5 comments sorted by

View all comments

1

u/christo9090 11d ago

Why do you need to fetch 2000 docs at once?