Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

count deldted records fast

Status
Not open for further replies.

bdenson

Programmer
Dec 12, 2001
14
GB
Is there a quick way of counting deleted records?

I am using COUNT FOR DELETED() TO deletedcnt at the moment, but it is too slow on large files.

Also, what functions are available to provide statistics about a table, i.e number of records, file modification dates, record size etc

(the ones I have listed are the ones I have manage to do, but I've given them as examples of the sort of stats I want).

Thanks

Barry
 
Well, it might be quicker if you had a tag (index) which indexed on deleted(). Then maybe RUSHMORE would take over.
You could look into that.

Other than that, if you absolutely have to have the information instantly you will have to keep track of that statistic in a separate file somewhere and keep updating it each time you delete/recall a record. Of course, this introduces possible error. So, you might have to update these figures during off hours to keep it as close as possible, etc ...

It just depends on how important this is to you.

Don
dond@csrinc.com

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top