Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
The mean of FLUSH
Message
De
27/04/2003 23:17:38
 
 
À
27/04/2003 23:15:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00782079
Message ID:
00782089
Vues:
11
>Precisely without buffering, there might very well be a performance penalty.
>
>Consider this case:
>
>
>APPEND BLANK
>REPLACE Field1 with Value1
>REPLACE Field2 with Value2
>REPLACE Field3 with Value3
>FLUSH
>
>
>With an implicit FLUSH, each separate REPLACE command would write to disk separately - and that would be much slower than writing to disk thrice, once for each REPLACE command.
>
>Of course, I know that the three REPLACE commands can be combined into one - but do all programmers do this?

I never used FLUSH in years. I tried it yesterday for a new approach but I dropped it today when I changed the lock to be at the related table level. So, I never exactly tried to know how VFP in the back is dropping the data to disk. My assumption is that was normally instantly. But, we've seen at high traffic that this is not usually the case if you have multiple apps querying the table at the same time.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform