Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sticky data problem - delayed writes
Message
From
14/08/2018 05:33:20
 
 
To
13/08/2018 12:34:32
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows Server 2012 R2
Network:
Windows Server 2012 R2
Database:
Visual FoxPro
Application:
Desktop
Virtual environment:
VMWare
Miscellaneous
Thread ID:
01661522
Message ID:
01661576
Views:
46
>A few more thoughts:
>
>- when a user "copies" a quote, the current procedure puts the records to be added into a view and then posts the records as a batch

since introduction of CursorAdapter I strive to base all data access on it. Sometimes rewrite to it makes sense even from view based code - even if hard to sell to paying customer.

>
>- in the past under older code, I instead added these records via doing a SCATTER from the source record and then an APPEND BLANK into the target table followed by a GATHER; I can't say this worked foolproof either
>

>- in my mind, there should be no difference between a view posting new records and doing so via APPEND BLANK or INSERT INTO - lock the header, add in the rows, write in the data, unlock the header etc
> ---> is there a difference?

Append BLANK always introduces chances of candidate/PK conflicts in multiuser. Key routines IMO best handled encapsulated / separate from pure "toDisk" handling and called in advance. But errors should point directly to cause...

>
>- there is no buffering on the target table...would it work better if there was? Again, I don't see how this would make a difference but am just looking for ideas?

You could handle some errors from flaky network or Win temporarily messing up subst/net use drive names when employing table buffered data. But those errors should produce clear error msg, so probably not your current problem.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform