Disk activity when using a record

Disk activity when using a record

Postby Marc Venken » Fri Feb 03, 2023 3:58 pm

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.04 with Harbour
User avatar
Marc Venken
 
Posts: 1446
Joined: Tue Jun 14, 2016 7:51 am
Location: Belgium

Re: Disk activity when using a record

Postby Antonio Linares » Sat Feb 04, 2023 7:34 am

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
User avatar
Antonio Linares
Site Admin
 
Posts: 42122
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot], wmormar and 91 guests