Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Which will be faster
Message
De
22/08/2006 07:46:45
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
22/08/2006 06:46:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01147503
Message ID:
01147518
Vues:
16
>Dear Experts,
>
>I have 2 questions that I want to know about.
>
>
>Question 1:
>Code 1:
>
>SET EXCLUSIVE OFF
>USE \\MyServerPath\MyTable
>IF FLOCK()
> INDEX ON MyField TO SYS(2015)
> UNLOCK
>ENDIF
>
>or
>
>Code 2:
>
>SET EXCLUSIVE OFF
>USE \\MyServerPath\MyTable
>IF FLOCK()
> INDEX ON MyField TO SYS(2023)+"\"+SYS(2015) && Temporary file path
> UNLOCK
>ENDIF
>
>Which one will faster Code1 or Code2
>
>
>Question 2:
>
>Which command of following will open table faster
>
>USE \\MyServer\MyTable
>
>or
>
>USE (Maped Drive):\MyTable
>
>
>Thnx
>Jignesh

Jignesh,
If you're concerned with the speed differences of those then probably there are better ways (like persistant tags in structural index, parametric view/SPT/cursoradapter,offline view,select..index etc).
Would you elaborate what you're trying to do.
PS: 2nd part of your question does not have an answer in practice I think. Depends on OS/HW/Network etc.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform