Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Clarion > Re: Deleting TP...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 3 Topic 9023 of 9121
Post > Topic >>

Re: Deleting TPS Records Faster?

by bnesheim <bnesheim@[EMAIL PROTECTED] > Feb 19, 2008 at 12:55 AM

yshouldeye@[EMAIL PROTECTED]
 wrote in news:cdb66309-f2a7-4ff5-9ba4-10b7ce3d0521
@[EMAIL PROTECTED]
> 
>   I'm working with an application in Clarion 6.1 and I'm working on
> improving our archiving process in our program. It seems that the
> deleting of records is taking forever and some of our customers are
> complaining of archives taking 4+ hours to finish. Basically we
> archive all the users old records for a TPS file into a secondary TPS
> file and then delete the record from the main TPS file. Is there a
> better method to go about cleaning out a TPS file and archiving the
> old records into a seperate file? Thanks in advance for any help!
> 
> - Phillip

The fast way to arcive and delete files I have found is to use the same
metode as the 'convert' function do.:

- Read the old datafile and write all you want to keep to a new file.
- Delete the old file.
- Rename new file to the name off the old file.

All you need to do extra is to define a backup-datafile and write all
the record you 'delete' to the backup-file.
If you want to keep all bcakup records in a single file just appand the 
backup to the master backup.

You can easy do this from a stand-alone convert-project or include the
code in the main app.

regards
Kjetil Nesheim
 




 3 Posts in Topic:
Deleting TPS Records Faster?
yshouldeye@[EMAIL PROTECT  2008-01-14 06:12:42 
Re: Deleting TPS Records Faster?
"Robert Peros"   2008-01-14 16:34:39 
Re: Deleting TPS Records Faster?
bnesheim <bnesheim@[EM  2008-02-19 00:55:41 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 21:37:01 CDT 2008.