Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Speed
Message
From
31/08/2006 11:01:08
 
 
To
31/08/2006 10:19:00
Mike Yearwood
Toronto, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Re: Speed
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Oracle
Miscellaneous
Thread ID:
01150121
Message ID:
01150142
Views:
32
>>I recently switched from using views to using sql pass through. I have an operation that inserts about 6800 records. With the switch from views to sql pass thru the time has increased significantly. The sqlpassthru command that inserts the records inserts each individually and runs for 100 seconds. Is there something I missed when doing this or should I have stayed with views?
>
>Your views may have been doing updates using the primary key field only, while your SPT may be doing the equivalent of key fields and modified fields.
>
>You have more control with SPT. How are you doing the updates?

I do recall having my views set to pk only. I connect to oracle via sqlstringconnect([dsn=GBG DDE LM;uid=dsd;pwd=dbuser;],.T.) and the only other change I make to the connection is to do manual transactions for all my updates and do an sqlcommit when done. I will have a look at how the updates are being done.
Previous
Reply
Map
View

Click here to load this message in the networking platform