adaptive-learning / proso-apps

Django modules for an adaptive practice system (currently used by http://slepemapy.cz/ or https://anatom.cz/)
MIT License
2 stars 7 forks source link

/models/practice/ is slow in anatom.cz #187

Closed slaweet closed 7 years ago

slaweet commented 7 years ago

The following request is less than 1kB in size, so imo it should take at most 100ms. Now it takes around 1s. https://anatom.cz/models/practice/?filter=%5B%5B%22category%2F01%22%5D,%5B%22category%2Fimages%22%5D%5D&language=cs&limit=2&without_contexts=1

papousek commented 7 years ago

The most time consuming part of the response is computation of predictions. I will try to speed it up.

slaweet commented 7 years ago

It's quite common that it takes even 5s, see the big yellow bar: https://tools.pingdom.com/#!/bdpq04/https://anatom.cz/practice/01/

papousek commented 7 years ago

@slaweet I know, see https://github.com/adaptive-learning/anatomy/issues/62 for my analysis. I will try to fix it with high priority.