I applied caching to Django for GET /api/paper/search.
When users search papers, the results are cached for 7 days, unless cached keys reach MAX_ENTRIES(1000). One result(one page of results) takes up 2 entries.
I checked this system make searching papers which were searched before by someone not really fast.
Minor changes
Lowered the logging level to ERROR.
Checklist
This pull request...
[x] has preceding issues related with it (if resolves some issues, metions them with 'resolve')
[x] doesn't include too many changes (you should focus on the specific feature in a PR)
[x] elaborately explains what feature is added, which part is fixed or improved
[x] has step by step instructions for collaborators, if needed
[x] has attached screenshots, if appropriate
My codes...
[x] include enough tests for added and changed parts
Related Issue: #210 This PR will resolve #210.
Major changes
I applied caching to Django for
GET /api/paper/search
. When users search papers, the results are cached for 7 days, unless cached keys reachMAX_ENTRIES
(1000). One result(one page of results) takes up 2 entries.I checked this system make searching papers which were searched before by someone not really fast.
Minor changes
Lowered the logging level to
ERROR
.Checklist
This pull request...
My codes...