Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL updates and VFP table buffering
Message
 
To
01/02/2002 10:50:32
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00611778
Message ID:
00614769
Views:
27
Hi,

The SQL server is on another machine. A dedicated SQL server that holds databases for multiple applications. It's a W2K PC with PIII 800+MHz CPU and 256Mb of RAM with a 40Gb hard drive.

The database is not that large yet but it can be. We estimate that it would have 100,000 records on some tables but not more than that. The 'Clean' data base (all look-up tables loaded) would be fairly small with the largest table having aroung 30,000 records.

The current problem is that loading the look-up table will take hours of processing if the current speed is used (about 1 record per second). We suspect that the constraints on the database is the culprit since when I was sending the updates before the contraints were applied, it was fast (about 3 to 4 records per second).

Were currently trying ADO recordsets now to see if that would produce better peformance.

Thanks,
Arriyel

>Arriyel,
>
>Hmmmm ... well, the slow speed is a bit harder to diagnose. Where is your server located? On another machine or locally? If it's another machine, is that machine set up, hardware-wise, properly for a server? (lots of RAM and diskspace and fast processors). It shouldn't take that long unless you are testing against a very large database on your local machine (which wouldn't have a server configuration).
>
>
>~~Bonnie
>
>
>>Hi,
>>
>>I tried your suggestion and it works since I see all the records I updated in the remote view appear in the SQL table. Problem is that it is still very slow. I updated 25 records and it took 25+ seconds before the tableupdate() returned control to VFP. I'm testing it with a larger table (>400 records) and it is taking longer that I expected since I started it 10m minutes ago and it still hasn't finished.
>>
>>Do you have any other ideas?
>>
>>Thanks;
>>Arriyel
>>
>>>Arriyel,
>>>
>>>>then doing a tableupdate() but it would only add 10 records or less with the rest missing. Is there a setting on the SQL server I need to set?
>>>
>>>Yes, for a remote view you probably need to use the following command:
>>>
>>>
>>>DBSETPROP("MyView", "View", "MaxRecords", -1)
>>>
>>>
>>>I believe it may default to 10 MaxRecords.
>>>
>>>HTH,
>>>~~Bonnie
Speak using soft and sweet words in case you have to eat them later.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform