openfun / fun-apps

:warning: DEPRECATED :warning:
Other
15 stars 20 forks source link

Make asynchronuous course search less greedy #605

Closed julAtWork closed 7 years ago

julAtWork commented 7 years ago

Actually Search in courses in triggered for every type including the first one that has great probability of being irrelevant which make expensive useless query hit our database

Solution: using async features of JS and impose some sane defaults.

The more people type letter the shorter the response time. If someone type on the keyboard the async call is suspended.