Improve an application performance by adding indexes to a database

后端 未结 2 2007
攒了一身酷
攒了一身酷 2021-01-29 01:20

I\'ve got an old web application with a lot of legacy code and I need to improve performance for some reports. I want to avoid reports rewrite, because it\'s standard legacy app

2条回答
  •  情话喂你
    2021-01-29 02:01

    1. It's a good idea to improve application performance by improving SQL queries performance if DB is a bottleneck. From information provided above I can say that in your case DB performance is important and worth to improve.

    2. It's possible to significantly improve performance of reports which execute a lot of queries by adding indexes. Especially if tables itself contain tons of records (10 000 and more). But, indexes have their own drawbacks:

      • they slowdown insertions/updates/deletions
      • they influence query execution plan. As a result in some cases DB manager chooses to use index when it would be more appropriate to perform full table scan. Which in turn causes performance degradation.

提交回复
热议问题