You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: public/Set-DbaDbCompression.ps1
+20-7Lines changed: 20 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -44,6 +44,10 @@ function Set-DbaDbCompression {
44
44
Forces compression operations to use offline rebuilds instead of the default online rebuilds when possible. Online rebuilds keep tables accessible during compression but use more resources.
45
45
Use this switch when you need to minimize resource usage during compression or when experiencing issues with online operations. Offline rebuilds will make tables unavailable during the compression process.
46
46
47
+
.PARAMETERSortInTempDB
48
+
Specifies that intermediate sort operations during index rebuilds should use the tempdb database. This can speed up index creation and reduce space usage in the user database at the expense of tempdb.
49
+
Use this switch when rebuilding large indexes to avoid filling the user database's log or data files. Requires sufficient space in tempdb for the sort operations.
50
+
47
51
.PARAMETERInputObject
48
52
Accepts compression recommendations from Test-DbaDbCompression and applies those specific recommendations instead of running a new analysis.
49
53
Use this when you want to review compression recommendations first, then apply only the ones you approve of. This approach gives you more control over which objects get compressed.
@@ -150,6 +154,7 @@ function Set-DbaDbCompression {
150
154
[int]$MaxRunTime=0,
151
155
[int]$PercentCompression=0,
152
156
[switch]$ForceOfflineRebuilds,
157
+
[switch]$SortInTempDB,
153
158
$InputObject,
154
159
[switch]$EnableException
155
160
)
@@ -245,6 +250,7 @@ function Set-DbaDbCompression {
0 commit comments