Database performance tuning
See original GitHub issueSubject of the issue
Database queries are not optimized.
- There are a lot of queries which are jst select * on table… they need some sort of server side pagenation
- some of them do ORDER BY dateadded DESC… i cldnt see indexes on the dateadded… so we cld change them to do order by id desc or create index on dateadded desc
- https://keralarescue.in/contactus/?district=<district> for eg is mostly static. Introduce a redis/in memory cache and cache the result of the query for lets say 5 mins (edited) potentially cache generated content/query result on most of these pages which are almost static
explain analyze
any complicated queries which exist, and build custom indexes to handle them
Issue Analytics
- State:
- Created 5 years ago
- Comments:9
Top Results From Across the Web
10 Database Performance Tuning Best Practices
Performance tuning is key to improving database performance. By focusing on optimizing queries and cleaning up indexes, a large portion of ...
Read more >8 Database Performance Tuning Techniques
Database Performance Tuning Techniques · 1. Query Optimization · 2. Data Defragmentation · 3. Increase Memory · 4. Overhaul CPU · 5. Improve...
Read more >Database Performance Tuning
How does database tuning work in Database Performance Analyzer? · Use historical data to find out what “normal” is and gather information about...
Read more >SQL Database Performance Tuning for Developers
Performance tuning includes query optimization, SQL client code optimization, database index management, and in another sense, better coordination between ...
Read more >Top 10 performance tuning tips for relational databases
Top 10 performance tuning tips for relational databases · Scenario · Tip 1 - Database statistics · Tip 2 - Create optimized indexes...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
db is on AWS. I believe @biswaz and @cibingeorge are taking care of it.
Lets keep this thread clean as this is taken care of.
A quick PR with a couple of changes to improve some of the DB queries: https://github.com/IEEEKeralaSection/rescuekerala/pull/356