close ad
Install the LAtest Updates to Work with CC 2017 and CC 2018
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

rating

Record Locking for Concurrent Database Updates?

Thread began 5/24/2010 10:53 pm by fwchapman | Last modified 5/26/2010 6:08 pm by Jimmy Wu | 1016 views | 5 replies |

fwchapman

Record Locking for Concurrent Database Updates?

Hello everyone!

I just purchased DataAssist, and I am absolutely thrilled to have a tool which makes it so easy to create and maintain database applications on the web. I have a technical question.

In a single-user database application on the desktop, only one user updates the database at a time, but in a multi-user database application on the web, more than one user may try to update the same database at the same time. This creates a potential problem which could compromise the integrity of the data.

Does DataAssist use MySQL record locking to preserve the integrity of the data when multiple users update the same database concurrently?

Thank you,

Fred Chapman

Sign in to reply to this post

Jimmy Wu

Unfortunately, DataAssist does not employ the SQL locking capability. You can add it to the queries afterward if you want. Here's a reference on the locking capability:
innodb-locks-set.html

In most cases however, this will be handled by the database automatically. Another way you can accomplish something like this is to add a couple of columns to the database. These would usually be LockedTime and LockedBy and then you could update those when someone accesses the page and you would check those when other users access the page and lock them out if it is within a certain time frame.

Sign in to reply to this post

fwchapman

Hi Jimmy,

Thanks for your speedy reply and helpful suggestions! I looked at the link you provided, but it's not quite clear to me whether I need to do anything special to prevent problems.

What I'm really wondering is this: If I use DataAssist with no special modifications to create a multi-user database application on the web, is it possible the database may become corrupted by two users attempting to update the same information at the same time?

Fred

Sign in to reply to this post

Jimmy Wu

There shouldn't be any corruption issues with having multiple users updating the database at the same time.

Sign in to reply to this post

fwchapman

Thanks, Jimmy! That's what I wanted to know. -Fred

Sign in to reply to this post

Jimmy Wu

No problem. If you run into any other issues, feel free to open a new thread.

Sign in to reply to this post

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...