Database Record Locking Modes


Database Record Locking Modes

Author
Message
Peter Jarrett
Peter Jarrett
Forum Sage
Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)

Group: Broadcast Radio
Posts: 1.8K, Visits: 3.7K
Most of our products now store their information in shared Databases. These files allow very fast searching for information, as well as making applications more scalable as it is very easy for us to add new data - and therefore new facilities.

The drawback is that they have to use 'Record Locking' to ensure that a user doesn't overwrite anothers information by accidentally saving at the same time. This is why you may occasionally see messages such as \"Record Locked by user 'admin' on machine XXXX\".

As the number of computers opening a given database increases, you are more likely to encounter these Record Locking errors when adding or editing information.

Most of our products use the Microsoft Jet Database Engine (v3.6 or v4.0 depending on who at Microsoft you ask) which is an industry standard database that is very easy to setup and administer, as well as providing a very simple and easy way to back up all of your data.

To reduce the number of times you may see the above message, we are changing the way that we access the various databases from 'Page Level Locking' to a new method called 'Record Level Locking'.

Although a full description is beyond the scope of this post, a quick summary is to say that data is stored in databases in 'pages' of information. Each page contains 1 or more 'Records' - a record is single item in the database such as a Scoop Story, an AutoTrack Song or Link, a Directory Contact or a Log Entry in Myriad.

With Page Level Locking, if a user is updating a single record on a page, the whole page has to be locked, with the side effect that it prevents other users from updating other records on the same page - i.e. in Scoop, the stories near the one being edited, and in the Myriad Log, the entries above and below the one being edited.

With Record Level Locking, only the record being updated is locked, so the others are free to be edited.

The drawback to this method is that it is slightly slower, but this shouldn't be a factor on our software as the number of edits happening at any one time is always very low. In fact you are unlikely to notice any significant decreases unless you are running 10 or more busy users from the same database.

Now, the only caveat here is that the new mode can only be activated when a new or existing database is opened for the first time. If a database is already in use by other programs, then the record locking reverts to the old Page locking mode. Therefore you have to quit from all products accessing a database on all computers before it can be activated. In the case of the P Squared Directory, this is obviously used by almost all of our new generation of products, so you may need to plan ahead. Also, don't forget 'backoffice' programs like Scoop Capture that also use the database but can easily be forgotten. If you leave these running, they will keep the database open and the new mode can't therefore be activated.

For more information about this, please see the following article on the Microsoft Website:

http://support.microsoft.com/kb/275561/EN-US/#XSLTH3397121123120121120120

------------
Peter Jarrett, Technical Director
Broadcast Radio Ltd.

Bill Bailey: No win, no fee, no basis in reality. Just a room above a minicab office in Acton and a steady stream of greedy simpletons whose delusion is only matched by their clumsiness


Peter Jarrett
Peter Jarrett
Forum Sage
Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)

Group: Broadcast Radio
Posts: 1.8K, Visits: 3.7K
The following product versions have been updated (or are being updated) to use the new method:

   Myriad v3.0.9 and higher
   Powerlog Capture and Client v4.0.9 and higher   
   P Squared Directory Manager v3.0.8 and higher
   P Squared Nexus (all versions)
   Scoop Edit and Capture v3.0.17 and higher

Some of these programs are available now, others will be released in due course once their test cycles have been completed.

------------
Peter Jarrett, Technical Director
Broadcast Radio Ltd.

Bill Bailey: No win, no fee, no basis in reality. Just a room above a minicab office in Acton and a steady stream of greedy simpletons whose delusion is only matched by their clumsiness


Peter Jarrett
Peter Jarrett
Forum Sage
Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)Forum Sage (514K reputation)

Group: Broadcast Radio
Posts: 1.8K, Visits: 3.7K
If you experience any problems with using the new Locking method, these 2 files allow you to disable the new method, and to re-enable it again. Simply download them onto the computers you need to change and double click on the appropriate file. Then restart ALL of your computers at the same time so that the mode can be fully reset.

Please note that these files will only have an effect on the products listed above - unfortunately they cannot be used to activate the new mode on older versions of our software. They will not cause any harm, but equally, won't cause any good either!

------------
Peter Jarrett, Technical Director
Broadcast Radio Ltd.

Bill Bailey: No win, no fee, no basis in reality. Just a room above a minicab office in Acton and a steady stream of greedy simpletons whose delusion is only matched by their clumsiness


Attachments
DisableRecordLevelLocking.zip (636 views, 334 bytes)
ReEnableRecordLevelLocking.zip (646 views, 340 bytes)
Edited
18 Years Ago by Liam Burke
GO


Reading This Topic


Login
Existing Account
Email Address:


Password:


Select a Forum....





























Broadcast Radio Forums


Search