Getting Dashboard Stats, Lazy way

Sometimes we build very heavy dashboards, and then we have to gather stats like DataTable count, row count etc.
Or, we need to get the stats for analysis developed by someone else (boring ?? Yeah....)
I use below for such situations -

dc=0

rc=0

for t in Document.Data.Tables:

    print t.Name," ", t.RowCount

    dc=dc+1

    rc=rc+t.RowCount

print "DataTables ", dc

print "Total Rows ", rc
Share: