March 04, 2006, 02:20 AM
QalqiliMaintain 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 ?
March 04, 2006, 07:53 AM
Qalqilihi
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?
March 04, 2006, 11:02 AM
Maintain WizardThere 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
QalqiliThanks in advance for sharing.