Action items:
- Discuss with DEVOPS to increase RAM.
- Figure out why count is causing slow queries
- Wait until mongo for forums is in house
- Get the list of most used queries
...
Notes:
- It would be suggested to have a usable index for every query that we have. Slow queries can reduce the overall performance.
- Obtaining a list of queries would be ideal for index creation. The current indexes have not been designed with index intersection in mind.
- Common trend amongst slow queries is `count`
- All errors rates observed are due to the decrease in timeouts. https://github.com/edx/cs_comments_service/pull/146
- Index selectivity still needs some work.
...
Expand | ||
---|---|---|
| ||
"_id_" : 290, |
Observations:
Anchor | ||||
---|---|---|---|---|
|
Caching in effect. Below are sequential attempts at accessing the default view of a forums heavy course course-v1:IDBx+IDB6x+2015_T2 where the comment count of the pinned posts are ~4000. Each of the 20 threads it is trying to load (limit=20), is taking too long for a query. After each refresh, more data gets cached and then the comment count for the next threads are fetched. After a few refreshes, this course will no longer show 500s and load.
...