Closed
Description
In a similar way than #6060, we tried to instrument our Parse-Server production server using AWS-Xray (we're using an Elastic Beanstalk stack), and it seems we do a lot of requests to the cache to load the schema for any single requests (it's very high for some cloudFunctions we have)
When looking at the code, an weird thing is that we often call the loadSchema()
method then its fulfilled, we called the getOneSchema()
one on the resulting schemaController, and both of them are getting the full schema from the cache - with a big schema it's not a free call (it's around 5ms each in our case).
Is there a specific reason for that? is there room for improvement?