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
@@ -2488,12 +2498,13 @@ ON pvss.min_transaction_timestamp = asdt.transaction_sequence_num
2488
2498
WHEREpvss.database_id=DB_ID()
2489
2499
AND
2490
2500
(
2491
-
persistent_version_store_size_kb > @PVSMinimumSizeThresholdGB *1024*1024-- PVS is larger than n GB
2501
+
pvss.persistent_version_store_size_kb> @PVSMinimumSizeThresholdGB *1024*1024-- PVS is larger than n GB
2492
2502
OR
2493
2503
(
2494
-
persistent_version_store_size_kb > @PVSToMaxSizeMinThresholdRatio *das.db_allocated_size_kb-- PVS is larger than n% of database allocated size
2504
+
-- compare PVS size to database MAXSIZE, or to allocated size when MAXSIZE is not defined (Hyperscale, Managed Instance)
2505
+
pvss.persistent_version_store_size_kb>= @PVSToMaxSizeMinThresholdRatio *COALESCE(ds.max_size_gb, ds.space_allocated_gb) *1024*1024-- PVS is larger than n% of database max/allocated size
2495
2506
AND
2496
-
persistent_version_store_size_kb >1048576-- for small databases, don't consider PVS smaller than 1 GB as large
2507
+
pvss.persistent_version_store_size_kb>1048576-- don't consider PVS smaller than 1 GB as large
@@ -2485,12 +2495,13 @@ ON pvss.min_transaction_timestamp = asdt.transaction_sequence_num
2485
2495
WHEREpvss.database_id=DB_ID()
2486
2496
AND
2487
2497
(
2488
-
persistent_version_store_size_kb > @PVSMinimumSizeThresholdGB *1024*1024-- PVS is larger than n GB
2498
+
pvss.persistent_version_store_size_kb> @PVSMinimumSizeThresholdGB *1024*1024-- PVS is larger than n GB
2489
2499
OR
2490
2500
(
2491
-
persistent_version_store_size_kb > @PVSToMaxSizeMinThresholdRatio *das.db_allocated_size_kb-- PVS is larger than n% of database allocated size
2501
+
-- compare PVS size to database MAXSIZE, or to allocated size when MAXSIZE is not defined (Hyperscale, Managed Instance)
2502
+
pvss.persistent_version_store_size_kb>= @PVSToMaxSizeMinThresholdRatio *COALESCE(ds.max_size_gb, ds.space_allocated_gb) *1024*1024-- PVS is larger than n% of database max/allocated size
2492
2503
AND
2493
-
persistent_version_store_size_kb >1048576-- for small databases, don't consider PVS smaller than 1 GB as large
2504
+
pvss.persistent_version_store_size_kb>1048576-- don't consider PVS smaller than 1 GB as large
0 commit comments