Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Record/file Locks...why do we still worry about them?
Message
De
30/07/2006 08:29:08
 
 
À
28/07/2006 11:39:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01141169
Message ID:
01141599
Vues:
14
>Hell all
>
Hell right back at you :)

The only reason I can think of locking a file like that is if generating a new primary key, to ensure only one instance of your app gets the next key.


>Ok...new job, new application to learn...very old Fox code ported up through VFP8.
>
>All through the application we're doing explicit header locks - doing what ever to the table, then unlocking and flushing memory. Granted these are huge files (800 meg + ), but prior to this job I've never worried about file/header/record locks and let VFP handle that for me. Of course, I also went to file buffering/transaction handling along the way.
>
>Is there any reason WHY (other than old code)?
Frank.

Frank Cazabon
Samaan Systems Ltd.
www.samaansystems.com
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform