1. Add two BLOB fields to the SalesRep table (sports2000 database)
2. Run:
proutil dbname -C zerostats3. Run the following ABL code:
DEF VAR mPtr AS MEMPTR.
FOR EACH salesrep:
mPtr = salesrep.SmallImage.
SET-SIZE(mPtr) = 0.
mPtr = salesrep.LargeImage.
SET-SIZE(mPtr) = 0.
END.
4. Query the
_tablestat metrics. Apart from SalesRep showing Reads, the unrelated
Employee and
Department tables also show the same number of reads.
FOR EACH _tablestat NO-LOCK WHERE _tablestat-read > 0:
FIND _file no-lock WHERE _file-num = _tablestat-id.
DISPLAY
_file-name
_tablestat-id
_tablestat-read
WITH WIDTH 100.
END.