question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Database performance tuning

See original GitHub issue

Subject 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:closed
  • Created 5 years ago
  • Comments:9

github_iconTop GitHub Comments

1reaction
bobinsoncommented, Aug 17, 2018

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.

0reactions
rajeeshrpcommented, Aug 17, 2018

A quick PR with a couple of changes to improve some of the DB queries: https://github.com/IEEEKeralaSection/rescuekerala/pull/356

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found