SQL script to count daily archive ingest rate in Megabytes
Hi All,
Can anyone here please assist me in modifying the following SQL script below ?
SELECT "Archived Date" = LEFT (CONVERT (VARCHAR, archiveddate, 20), 10),
"Daily Rate" = Count (*),
"Av Size" = Sum (itemsize) / Count (*)
FROM saveset
WHERE archiveddate BETWEEN '2014-07-01' AND '2014-08-06'
GROUP BY LEFT (CONVERT (VARCHAR, archiveddate, 20), 10)
ORDER BY "archived date" DESC
So that it can display the total amount of Megabytes for all item archived between the date supplied.
The script above does not explains as to why the Open VaultStore partition lose 3 GB since yesterday.
Thanks in advance.
here's a different script you can try. run it against your vault store database:
select "Archived Date" = left (convert (varchar, S.archiveddate,20),10),
"Daily Rate" = count (*),
"Avg Item Size" = sum (S.itemsize)/count (*),
SUM(SP.OriginalSize)/1024/1024 "Original Size (MB)"
FROM Saveset S,
SavesetProperty SP
WHERE S.SavesetIdentity = SP.SavesetIdentity
AND archiveddate between '2014-08-01' and '2014-08-05'
group by left (convert (varchar, archiveddate,20),10)
order by "Archived Date" desc---
as for why your open partition has 3gb less since yesterday there could be a few reasons:
are you running expiry?
are users allowed to delete?
are you running collections?
maybe you had lots of CABs expanded due to a discovery/search/export/restore and the cleanup process ran?