Closed
Description
Hi!
I recently looked into my database performance and was wondering if my results are somewhat slow.
A single query.get(user.id) resolves in 20ms, which seems to be rather high,
regarding that the whole system and database is basically idling (indexes on _id are set).
There are only 8 users entries. It doesn't make a difference if I run it with a local
database/server or on AWS/MongoDBAtlas.
The performance for a query.get with 4 includes is about 40-50ms.
Is this the normal performance range to expect?
Steps to reproduce
Parse.Cloud.define("test", function(request, response) {
const tStart=Date.now();
let user = request.user;
let query = new Parse.Query(Parse.User);
query.get(user.id, {useMasterKey: true}).then(function(result) {
let time = Date.now()-tStart;
console.log(time);
response.success({"time": time});
},
function(error) {
response.error(error)
});
});
Expected Results
< 1ms
Actual Outcome
around 20ms
Environment Setup
-
Server
- parse-server version : 2.7.4
- remote server: AWS
-
Database
- MongoDB version: 3.4.13 wired tiger, hosted on MongoDB Atlas
Metadata
Metadata
Assignees
Labels
No labels