My application uses Python==3.9, Django==2.2.28, Django rest framework==3.12.4 and google app engine. please consider, I have a “test” model which has nearly 40 fields. I am trying to serialize 1000 datastore objects using Django(rest framework) serializer but it is taking around 5-6 seconds. Any suggestions why it is taking more time? I did analysis on database query and query is taking less time i.e. in milliseconds but while serializing the query data it’s taking more time.
Any help would be greatly appreciated.
Side note: While there are people here who will try to assist you with your issue, this forum is not an official support channel for the Django REST Framework. You may get faster or more detailed assistance from one of the resources listed in the Support section of the docs.
You are also likely to get better answers here if you post your model and view involved in this process. What you have posted doesn’t really provide enough information to do anything other than make guesses about what the problem might be.