I've been told that defragging causes the log to grow tremendously. Is this true? If so, is there something better to do than defragging that will not impact the log as much? We are running SQL Server 2005 replicating between 2 sites.
Is defragging tough on replication?
733 Views Asked by Jim At
1
There are 1 best solutions below
Related Questions in SQL-SERVER-2005
- sqlsrv_query doesn't return false on faulty T-SQL query
- PHP error connecting to MS SQL 2005 using CodeIgniter
- SQL Insert Date Mystery on 2012 from 2005
- SQL Server 2000 query conversion
- How to compare two date in SQL Server 2005?
- Different SELECT's for an INSERT INTO
- Selecting from a column with Ampersand(&)
- Get Parent and grand parents of a particular child
- UPDATE after INSERT for potentially multiple rows - not working
- Is there a way to re-write this SQL query using a WITH clause or any other CTE that might be even better?
- Get Active Directory Name From SQL User ID
- vb.net auto update datagridview when database change
- sql query to join and concat values
- UNION ALL on 2 tables select with Cases
- LEFT JOIN on multiple columns with unwanted duplicates
Related Questions in REPLICATION
- How to handle sequences in Bucardo Postgresql multi master
- percona replication -slave does not follow the master
- sql server for replication and web application
- does slave-skip-errors avoid remove errors from the logs
- MySQL Replication tables needed to be replicated is working except for 2 tables
- Cancel DELETE on MySQL REPLICATE
- How to fix jobs conflict in transactional replication
- Trigger to update a table when data in other table is updated
- Replicating Master-slave on mysql using gtid in mysql-5.6
- Where I can find MariaDB protocol document that different from MySQL
- Create Trigger does not replicate in mysql
- How to delete replication slot in postgres 9.4
- Performance/Latency when using mysql replication
- What connection string to use for Azure SQL DB using Active Geo Replication?
- how hdfs removes over-replicated blocks
Related Questions in DEFRAGMENTATION
- Clustered Columnstore Index Fragmentation - Index Properties and dm_db_column_store_row_group_physical_stats differences
- (SQL Server) Why GUID or other random value as high-order key will cause fragmentation?
- (SQL Server) How to defragment indexes with LOBs?
- Can defragmentation be done on a Knuth heap?
- MS-SQL: Space overhead for rebuild vs. recreate
- Defragmenting Windows Drives as part of an NSIS installer script?
- Defragmenting SQL indexes
- How to find out fragmented indexes and defragment them in PostgreSQL?
- Run progress bar along with Disk Defragmentation in WPF
- File System Filter Driver: Creating a Defragmenter
- Writing mock disk defragmentation method using arrays, shuffling them across
- How can I find information about a file from logical cluster number in NTFS/FAT32?
- Programmatically determine a file's fragmentation status
- Is defragging tough on replication?
- Windows defrag is not recognized as an internal or external command, operable program or batch file
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no 'defrag' in SQL Server. You may be talking about an index reorganize operation or an index rebuild operation. Reorganize is light on log, but index rebuild creates as much log as the size of the index multiplied by a factor. For a large index the rebuild operation may result in log growth.
Having a large log will impact the transactional log reader agent simply because it will have more log records to scan through for a period. Eventually the log reader agent will catch up. The exact numbers (duration of latency, latency size etc) will differ based on a number of factors, your best choice is trial and measurement.
As for alternatives:
If the answers are Yes, Yes and Yes and the conclusion is that periodic index rebuild is unavoidable then there is no alternative, you're going to have to bite the bullet and take this operation into account when calibrating the hardware requirements.