Share via

DataWarehouse Performance indexes defragmentation after insert

Becchio Michele 21 Reputation points
2022-03-17T09:14:14.22+00:00

Hello everybody,

I ask for advice on this issue. We have an Azure SQL DB that every night retrieves, after deleting, thousands of data from different data sources and immediately afterwards a series of ETL Stored Procedures are performed to process and present data to users through reporting programs. The problem is that despite a defragmentation and updating of statistics is performed every day, the following day the indices of the various tables are defragmented again above 50%, putting the performance of the ETL procedures at risk (which in our case means an increase in the execution). Is it possible to somehow avoid or reduce this problem?

SQL Server | Other
SQL Server | Other

Additional SQL Server features and topics not covered by specific categories

0 comments No comments

Answer accepted by question author

Olaf Helper 47,621 Reputation points
2022-03-17T09:35:15.957+00:00

One option is to disable all indexes on start, performing the data load and then enabling all index = rebuild. Depending on the data amount this procedure can be fast & better then e.g. an index reorg.

Was this answer helpful?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.