Focal Point
Maintain and table lock

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/5611061751

March 04, 2006, 02:20 AM
Qalqili
Maintain and table lock
hi All ,
i face some issue that related with Maintain procedure, it is summarized as following:

when i update the data by submitted the data Form to database table, the maintain Application lock the table until the application find commit point to unlock the table,this is good and working fine for one user at a time ; but if i have 9 or 7 user,there is one of them will reserve the table and the other will be waiting for the first one to release the table :
NOTE:
may if we made the lock at the record level not at the table level it will be working but how?

is there any technique to reselovr it ?


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
March 04, 2006, 07:53 AM
Qalqili
hi
i think if we put the commit point at button level with in onClick Event Handler will be working, for millisecound locking

but if we have 300 user and there is unloucky user he try to update table but the others locking the table before him self he will be waiting for long time to access the specified table
Corect me if i am on the wrong way:

any suggestion?


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.
March 04, 2006, 11:02 AM
Maintain Wizard
There is an installation option in most relational databases that determines whether a record is locked or re-selectable. Check this option.

If you wan't zero record locking when a user selects records, you can use TABLE to retrieve records into a Maintain procedure. TABLE does not lock records. The syntax is something like:

MAINTAIN FILE CAR
INFER COUNTRY CAR INTO STK
EXEC GETDATA INTO STK
...
END

-* GETDATA FOCEXEC
TABLE FILE CAR
PRINT CAR BY COUNTRY
ON TABLE PCHOLD
END

The other thing you can do is just let the user bring in 1 record at a time instead of a set of records. You would probably want that one record locked while a user is updating it.
March 11, 2006, 12:51 AM
Qalqili
Thanks in advance for sharing.


WF 7.7.0.3HF3 / WinXP- WF-Client & Apache / DevStd 7.7.0.3HF3 win XP.