Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Remote view speed w/ large data set, vs select to a cur
Message
De
01/08/2002 16:01:16
 
 
À
01/08/2002 10:21:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00683953
Message ID:
00685203
Vues:
32
I don't know where to check the the MDAC version. The odbc components are all 3.520.7926. I had tried doevents, but it didn't help, as Markus stated. As far as what I use goes, this pertains to Visual Accountmate, an accounting system that I am modifying, which makes use of a combination of rv's, spt, sp's and triggers. Now that I know how to update an spt cursor, I think I will stick with that for all new development. It seems less problematic across the board. But I still need to work through the RV issues, since there is TONS of existing Accountmate code that uses them. Most of them are parameterized with small result sets.

Thanks for your input!

>David,
>
>Do you have the most up to date MDAC? I just haven't seen this behavior. What it you issue a DoEvents() right before the use.
>
>I guess my answer would be, try to avoid bringing 85,000 records across the wire.
>
>Also, I think a better design is to use Dynamic SQL and SPT for pick lists, and a remote view to bring in a single record for a CRUD form.
>
>BOb
>
>
>>Bob,
>>
>>Nope, it doesn't, not at all. Oddly as I continue to test,it turns out that Markus's suggestion that I click the mouse, while waiting for it to download, indeed has A DRAMATIC effect on performance. Markus had suggested clicking once. I find that if I just continually move the mouse over my desktop, I can get it to finish in 20 secs in stead of 3 minutes. Bizarre but true.
>>
>>Isn't there a guru out there who can explain this odd behaviour? In the meantime, until someone tells me otherwise, I need to conclude that even though I was under the impression that remote views are just a 'simple' wrapper around spt, I need to conclude that there are big differences in the implementation, and that I will definitely be giving up remote views entirely in favor of updatable spt cursors.
>>
>>
>>
>>
>>>USE MyRemoteView NOUPDATE
>>>
>>>See if that comes in faster.
>>>
>>>BOb
>>>
>>>
>>>>Mike,
>>>>
>>>>There are some conditions that I am working on where I might be able to limit the result set. Even so, at this point here is my main issue:
>>>>
>>>>As I said previously - here are the stats on retrieval:
>>>>
>>>>using remote view - open view with all 85K, look at status bar - recpointer/reccount() - takes 3 minutes to download all records.
>>>>
>>>>lnresult=sqlexe(lnhandle,'select * from sostrs','cursostrs')
>>>>takes only 6 seconds for command to finish executing, all rows returned
>>>>I can move record pointer to bottom, middle etc, execute a replace, no problem.
>>>>
>>>>Why such a tremendous difference when remote view is just a 'wrapper' around SPT? People I have spoken with have described a 50% difference in remote view vs spt. I am seeing orders of magnitude. Am I overlooking some property setting, or something simple - like 'SET GOFAST ON' (just kidding)
>>>>
>>>>Thanks for your help!
>>>>
>>>>>>I have a sql server table with 85K rows, a sales order line item file. Unfortunately for this application, it is difficult to come up with parameter conditions to limit the # of rows to retrieve - it makes more sense to download the whole file for the application I am working with.
>>>>>
>>>>>I highly suggest that you find something to limit the amount of data that you will be retrieving. If you don't, you will be creating performance issues. What's a user going to do with 85,000 rows? How would they go about finding a specific set of rows? Can you not force some kind of search specs such as a date range, customer number, employee number, country code, something?!?!
>>>>>
>>>>>-Mike
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform