Dear all,
All the databases are in the same AG both primary and secondary replicas.
Availability mode: syncronous
SQL flavour is 2014 EM
Well, suppose that I am trying to turn assumptions into facts and get the squaring the circle. :-)
I’ve been thinking over our model I have to come the conclusion:
-Define on weekly basis rebuild/reorganize tasks on the most important databases
-Define on monthly basis maintentance stuff for non user databases (master, tempdb, model..) and for small databases for auditing (almost not in
use)
The script for do that is clear for me: classical script where according % defragmentation level is applied REBUILD or REORGANIZE using offline
when necessary (Lob datatypes). After this script never update statistics. is that correct?
Must I update statistics after REBUILD? What does happen with the statistics for the indexes?
My other concern comes how schedule that keeping in mind the following schema:
Every hour is performed a backup log in both nodes. Last time, reindex job tasks take more than hour...
Currently after reindex job I have onebackup log to NUL plus one shrink for the LDF.
I think is a bad practice overall for the shrink.
Thanks indeed for your comments and hints on that, I appreciate your time
Enric