Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro future
Message
De
30/07/1997 20:08:47
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00042182
Message ID:
00042527
Vues:
33
I believe is good to notice that this material is pretty old since it says that "the newer version, 2.0 or 2.5, IS better at this" (It refers to VB 2.0 or 2.5.). Do we compare FoxBase with VB5? No.

I also can give some funny examples from dBase II, III or IV. But this will not prove that VFP is better than Visual dBase. But I also can give some examples from dBase IV that will prove that dBase IV did some things better than VFP5!

Vlad

>Antonio Carlos,
>
>Antonio Carlos,
>
>Why do you not go and ask the VB guys? This extract is from a FAQ (see
>http://home.sol.no/jansh/vb/vb_e.htm#F). (Hope this is legal! :)). I particularily liked the part where they talk about complex queries! And how do you like their response times? 30 hours on a single table? Of course if they are working on XT's ...
>
>Quote
>
>How can I speed up my VB database application?
>
>One word: stored queries. Failing that, recordsets.
>
>KB article Q109830 gives some hints. Things you should do include:
>
> Use Snapshots when possible.
> Use transactions whenever possible.
> Use Dynasets when possible.
> Use SQL action queries when possible.
> [George Tatge (gat@csn.org)]
>
>KB article Q120172 gives additional ideas on speeding up VB database
>access
>
>Major Weakness: SQL is SLOW! A hand-coded search (with indices) is MUCH
>faster than an equivalent SQL call, especially
>with complex search criteria. For example:
>
> SELECT * FROM Table WHERE SSN = '555-33-1234' AND Posted #01-31-95#
>
>is a lot slower than:
>
> Table.Index = "SSN"
> Table.Seek "=", "555-33-1234"
> If Not Table.NoMatch Then
> While Not Table.EOF
>
> If Table("SSN") "555-33-1234" Then
> Table.MoveLast 'Forces an EOF
> ElseIf Table("Posted") #01-31-95# Then
> 'Do something
> End If
> Table.MoveNext
>
> Wend
> End If
>
>Granted, it is a LOT more code, but I ran a VERY similar query that took
>THIRTY HOURS! The equivalent hand-written
>code took ELEVEN MINUTES! That's 163 times faster! I think basically SQL
>isn't very good at figuring out which indexes to
>use (I also think I've read something to the effect that the newer
>version, 2.0 or 2.5, IS better at this).
>[John McGuire ]
>
>UnQuote
>
>If after that you are still considering VB for database applications ...
>
>Marc
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform