-
Notifications
You must be signed in to change notification settings - Fork 10
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
Performance benchamrks #13
Comments
You can run the "bench" task using gulp. What do you mean by recommendations? |
@meirgottlieb sorry for the vague question. I meant, some particular usage patterns that degrade performance that might not be immediately obvious, as well as suggestions around isolating issues when troubleshooting slowness when hydrate is being used. The reason I bring it up is because there is some perceived slowness in the app i'm building which might or might not be related to hydrate, and I wanted to check if there are any easy ways of shooting yourself in the foot that I might be ignoring. Ultimately, I think the slowness is probably unrelated to hydrate, but knowing what to check for first should make things easier to isolate/troubleshoot. |
Got it. No problem. I have lots of recommendations:
Please let me know if any of the suggestion above help. |
Also, to help identify slow queries during development, add a bunyan logger with a log level of TRACE as the logger property in the Configuration. This will log all queries executed along with the amount of time it took to execute the query. You can then execute slow queries directly in the MongoDB shell with explain to determine what indexes will be helpful (or if your current indexes are working as expected). Note that ObjectId's logged in the queries are printed as strings so you need to make sure to wrap them with ObjectId when running a query in the MongoDB shell. The logger will also print out summary information for a flush, such as the execution time, and the number of entities inserted, updated, removed, and dirty checked. If your flushes are slow, consider using the strategies mentioned above to reduce dirty checking and serialization time. I do not recommend using the logger in a production environment. |
Awesome pointers! Thanks so much, will try this out and report on findings. |
Hey @dryajov, Did any of these suggestions help? |
We're starting performance testing shortly, so haven't had a time to test this out yet - but the tracing suggestion helped a for debugging. Tanks! Will report back as soon as I have results. |
Are there any performance benchmarks and recommendations?
The text was updated successfully, but these errors were encountered: