umutbozkurt / django-rest-framework-mongoengine

Mongoengine support for Django Rest Framework
MIT License
616 stars 167 forks source link

Is there a way to speed serializer? #286

Open HendricksRichard opened 2 years ago

HendricksRichard commented 2 years ago

I use modelserializer like example showed, but this is too slow, I only test 50,000 data.

so how can I to speed serializer! thank you!

BurkovBA commented 2 years ago

Hello, @HendricksRichard.

Could you elaborate? Are you trying to serve a mongo collection through your API, sending it through the web as a JSON?

Do you have a single collection with 50,000 documents in it, which you are trying to serialize? Are you trying to output this whole collection? How much time does it take? How much time is acceptable for your use case?