Disk activity when using a record

Post Reply
User avatar
Marc Venken
Posts: 1485
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Disk activity when using a record

Post by Marc Venken »

I wonder... (Antonio, ChatGPT is not accessible, to much hits at this time )))))

When a dbf is on a record I have the (BAD) habit of doing calculations like :

nAankoop = artikel->new_bruto - (artikel->new_bruto * artikel->korting)/100
nAankoop = nAankoop - (new_bruto * artikel->korting2)/100
replace artikel->new_aankoop with nAankoop
artikel->new_marge = ((artikel->new_bruto/artikel->new_aank)*100)-100
artikel->new_diff = ((artikel->new_aank/artikel->aankoop)*100)-100

will there always be a disk access for each time I use a item artikel->.... ? or will the data come from the cach of the computer ?

Just to be sure ! . I can easily change my workflow in using a hash or tdatabase for this.
Marc Venken
Using: FWH 23.08 with Harbour
User avatar
Antonio Linares
Site Admin
Posts: 42520
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Has thanked: 31 times
Been thanked: 75 times
Contact:

Re: Disk activity when using a record

Post by Antonio Linares »

Dear Marc,

I would say that the data come from the cach of the computer

Only when you move to a different record, or you modify the data, the disk will be accessed
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply