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.
Related Questions in SQL-SERVER-2005
- Sqlcmd can connect to old SQL Server 2005, but connection string pyodbc with Driver 18 from Microsoft does not work
- Possible reasons for an SSIS conditional split into the same destination table?
- Replace occurrences of characters in a string
- What does the value 30 indicate in the type column in the MSrepl_commands table?
- What is the fastest way to extract data from SQL Server 2005 using PowerShell 7?
- Auto applied migrations using EF Core 7.0.14
- Need a SQL Query for Getting matched and not matched Records
- SQL Server query returns multiple line results instead of returning 1 line
- Write error with spark.write against SQL Server table (via JDBC Connection)
- Extract data using multiple conditions for the column value?
- MS SQL SERVER 2005 temp db log file size is increasing
- How to get the sum of a column for the current month?
- Cannot connect to server - An existing connection was forcibly closed by the remote host
- MS SQL Sort Alphanumeric values (1, 2, 3, 5, 6, 7, 9, 10, 4a, 8a, 4b, 8b)
- Is there a way to Manually unlock the Opentext Exstream Design Database?
Related Questions in REPLICATION
- Which column to use for ordering change data read from change tables in SQL Server?
- Postgresql Database Replicate Using Docker-Compose File
- PG_chameleon during start replica turns columns into UNKNOWN_COL{number}
- Consistency of replicated map across cluster nodes
- DB Replicating from different publisher to a sing subscriber
- How to route different db requests to read only instance
- Replication postgresql database error connection between master to standby
- mongodb statefulset pods restarting without any useful error during replication
- Snapshots in Logical Decoding
- SQL Server replication: Need to remove articles from the publication
- TSQL query for transactional replication log reader agent account in SQL Server
- Does PostgresSQL 16 support Active Active replication ? I am using the free version
- Invoke-Command to a DC for replication not working in Windows 11
- Postgres connection failed while Debezium connector streaming changes
- How to Achieve Master-Master Replication in MongoDB for Two Databases in Different Locations?
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
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?
Popular Tags
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)
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.