Comments on: managing data compression with dbatools https://dbatools.io/compression/ the community's sql powershell module Sat, 20 Apr 2019 19:46:41 +0000 hourly 1 https://wordpress.org/?v=5.3.4 By: Michal Piatek https://dbatools.io/compression/#comment-63735 Sat, 20 Apr 2019 19:46:41 +0000 https://dbatools.io/?p=9319#comment-63735 I am just doing DB Compression + Shrink on an Archiving System with 2 DBs each 2.5TB. I still have some other DBs where I will evaluate compression. This here might be very useful. I didn’t know dbatools before. I stumbled upon it in an article of Kendra Little. Looks awesome…

]]>
By: Gabor https://dbatools.io/compression/#comment-39279 Fri, 04 Jan 2019 12:28:47 +0000 https://dbatools.io/?p=9319#comment-39279 Hi Jess,

Nice job but in my case the sys.dm_db_index_operational_stats doesn’t contain any useful information about the index usage. I use the sys.dm_db_index_usage_stats to calculate the update and scan percentages. Maybe the SQL can flush the sys.dm_db_index_operational_stats under memory pressure.

This is my calculations:
– for update percentage
WHEN ( SUM(user_updates + user_seeks + user_scans + user_lookups) = 0 ) THEN NULL
ELSE ROUND(( CAST(SUM(user_updates) AS DECIMAL) / CAST(SUM(user_updates + user_seeks + user_scans + user_lookups) AS DECIMAL) ),2)

– for scan percentage
WHEN ( SUM(user_updates + user_seeks + user_scans + user_lookups) = 0 ) THEN NULL
ELSE ROUND(( CAST(SUM(user_seeks + user_scans + user_lookups) AS DECIMAL) / CAST(SUM(user_updates + user_seeks + user_scans + user_lookups) AS DECIMAL) ),2)

In connection with the sys.dm_db_index_operational_stats:
https://blogs.msdn.microsoft.com/craigfr/2009/07/29/correction-to-my-prior-post-on-sys-dm_db_index_operational_stats/

Cheers,
Gabor

]]>
By: Data Compression With dbatools – Curated SQL https://dbatools.io/compression/#comment-39040 Thu, 03 Jan 2019 13:00:41 +0000 https://dbatools.io/?p=9319#comment-39040 […] Jess Pomfret shows us the data compression options available when using dbatools: […]

]]>