Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
25meg. network package for a SQL-12k file result-set
Message
From
20/03/2002 17:54:03
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00633822
Message ID:
00635253
Views:
25
Bob,

>
>Years back I recall doing a test building two keys on a text field. One using ALLT() and the other just the expression.. and comparing the file sizes. I recalled the ALLT() index was smaller. I did do the same thing today and both were the same size which bears out the above!!
>

I think ALLTRIM() in an index expression (especially when concatenating) would give unpredictable results, and I wouldn't recommend it even if the index file were smaller.

>I am still looking for the answer to " When a SQL request is made from the client to the server, what is the makup of communications between the two from the beginning to the completion of the request besides the resultant cursor?
>

VFP (running by itself on a desktop) is not a client/server solution. Your server in this instance is only acting as file server, *all* VFP processing occurs at the client. This means VFP will pull all records across the wire, if necessary. Proper Rushmore optimization will reduce the data that comes across the wire; turning optimization off is not a good idea, except for diagnostic purposes.

Also, I notice you have TOP 50 in your query. This will not speed up the query, since the entire result set is assembled before applying the limitation.

If you care to mess with it, Les Pinter has an article on his site ("A Foxpro Server", in the Learning Center) that shows how to use a VFP server to do the processing on a server and return a result set in a file.

Also look at www.west-wind.com for thin-client ideas. Of course, there is always SQL Server :)
Steve Gibson
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform