Skip to content
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

Caching the database queries #37

Open
vikneswaran20 opened this issue Oct 7, 2019 · 2 comments
Open

Caching the database queries #37

vikneswaran20 opened this issue Oct 7, 2019 · 2 comments
Labels
enhancement ⭐ New feature or request

Comments

@vikneswaran20
Copy link
Contributor

vikneswaran20 commented Oct 7, 2019

Caching the DB queries will vastly improve the performance of this kind of projects
This is a read-heavy web application where the read is pretty more when comparted to write. As data becomes huge the query performance will be very slow. So introducing the caching will be good to scale up this application.

@Bhupesh-V
Copy link
Owner

Yes you are right @vikneswaran20 , I actually removed cached query from the latest release due to some problems
feel free to contribute and do let me know the approach 👍

@vikneswaran20
Copy link
Contributor Author

I have added the caching for the Tags page initially since the page is pretty static unless a new tag gets introduced.
So I will be checking if there is a key in the cache for all the tags during tags page load if it doesn't I will query the DB and update the cache. Once the new tag has been added to the DB I will remove the cache. So during the next visit to tags page cache get automatically updated.

vikneswaran20 added a commit to vikneswaran20/tutorialdb that referenced this issue Oct 7, 2019
@Bhupesh-V Bhupesh-V added this to the v1.1.4 milestone Oct 8, 2019
@Animesh-Ghosh Animesh-Ghosh added the enhancement ⭐ New feature or request label Oct 8, 2019
@Bhupesh-V Bhupesh-V removed this from the v1.1.4 milestone Oct 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ⭐ New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants