-
-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
self-hosted parse-server is slow on AWS #1381
Comments
Parse.com will add index for you based on the queries you issue. Parse Server does not do that, you will need to add indexes yourself. |
@drew |
Is the parse.com app using the same mlab database? |
@gfosco yes it is |
There are a lot of potential reasons for performance issues. Parse Server may be executing different queries, there may be latency between your DB and Server, etc. If you can provide more details about what exactly is slow, that would be helpful. |
@drew I don't think is indexing problem because I'm using the same database, so if that database is indexed, so changing the parse server won't affect it. |
Thats true, the indexes should be there. Is there any way you can look at your mLab to check how much time is being spent in mongoDB vs in Parse Server code? Also, can you check latency between your Parse Server and mLab db? |
@benishak are you a logged in user? There are a number of excess queries being run when the user has roles. #1383 should improve the role query performance, by quite a lot. My suggestion would be to look at the real time mongo logging on your mlab database while you run the simple query to see exactly how many queries are run. Also mLab instances are generally hosted in the east coast, so you will want to have your AWS instance as close as possible to the database. |
I'm trying to host my own parse-server on AWS
I have an EC2 t2.micro instance running with NGINX and GZip.
When doing requests to my mLab-hosted MongoDB I noticed that it is slow, I get the following result for the same requests
AWS-EU-Central vs PARSE vs AWS-US-East vs Heroku
2.5s vs 0.3s vs 1.4s vs 3.0s
On Heroku I'm not using NGINX
Does parse.com use CDN (AWS CloudFront)
The Indexing could be also a reason for that, does Parse.com use advanced indexing or just basic indexing?
Thanks
The text was updated successfully, but these errors were encountered: