IT Hardwares

eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
eg: UK or Brides UK or Classical Art or Buy Music or Spirituality
 
Business & Money
Technology
Women
Health
Education
Family
Travel
Cars
Entertainment
SD Editorials
Online Guide and article directory site.
Foodeditorials.com
Over 15,000 recipes & editorials on food.
Lyricadvisor.com
Get 100,000 Lyric & Albums.
  • Business & Money
    • A Guide to Business
    • Guide to Finance
    • Ideas for Marketing
    • Legal Guide
    • Guide to Insurance
    • Lettre De Motivation
    • Guide to the Stock Market
    • Human Resource Career
    • Sales Marketing
    • Forex & Trading
    • Advertising & Marketing
    • Startup Guide
  • Technology
    • Guide to Technology
    • Cell Phones
    • Computer Software
    • IT Hardwares
    • Internet
    • Online Security
    • Cameras
    • Search Engine Optimization
    • Science & Technology
  • Women
    • Guide to Women
    • Relationship Advice
    • Marriage
    • Jewelry
    • Pregnancy
    • Fashion Style
    • Divorce Guide
    • Wedding Guide
    • Dating Guide
    • Natural Beauty
  • Health
    • Guide to Health
    • Guide to Medical
    • Plastic Surgery
    • Weight Loss
    • Sports
    • Body Wellness
    • Cancer Treatment
    • Common Illness
    • Health & Lifestyle
  • Education
    • Military Service
    • Politics and Policy
    • Arts & Humanities
    • Education and Teaching
    • Learn Languages
    • Colleges & Universities
  • Family
    • Quality Home Improvement
    • Hobbies and Interests
    • Family Guide to
    • Pet Guide
    • Loans Guide
    • Credit Cards
    • Gardening Guide
    • Home Security
    • Real Estate
    • Home Decor
    • Gift & Present
  • Travel
    • The Travel Guide
    • Adventure Travel
    • Cruise Ships
    • Beach Holiday
    • Travel Accommodation
    • Holiday Destinations
  • Cars
    • Information on Cars
    • Traffic Violations
    • Auto Insurance
    • Trailers
    • Sport Cars
    • The Bikes
  • Entertainment
    • Entertainment Guide
    • World Music
    • Photo & Video
    • Television & Games

Microsoft Access Record Locking

    View: 
If you're not a programmer, why should this matter to you?



Answer: Even if you're just installing and using server-side scripts, you'll want to make sure that the scripts that you choose don't randomly break or corrupt your data.

First, some examples of the types of scripts which store data on web servers include:

(Of course, many scripts in each of these (and other) categories are well-designed, and run perfectly well even on very busy web sites).

1. Follow-up autoresponders typically store the list of subscribers to the autoresponder, as well where in the sequence of messages, each subscriber is. Examples of autoresponder scripts: http://www.scriptcavern.com/scr_email_auto.php

2. Classified ad scripts store (at least) a list of all the classified ads placed by visitors. Examples of this type of script: http://www.scriptcavern.com/scr_classified.php

3. Free for all links scripts store a list of all links posted by visitors. See some example scripts listed at: http://www.scriptcavern.com/scr_ffa.php

4. Top site scripts usually store a list of the members of the top site as well as information about the number of "votes" that each has received. For examples of this type of script, see http://www.scriptcavern.com/scr_topsite.php

So what kind of scripts have problems? And what sort of problems am I talking about?

Well the principle problems all relate to what happens when bits of data from multiple users needs to be stored on updated at the same time. Some scripts handle these situations well, but others don't...

DATA CORRUPTION

Here's a common data corruption problem that can occur with many scripts:

1. When some bit of data needs to be updated, a copy of the server-side script starts running, and then starts updating it.

2. If another user comes along and does an update before the first copy of the script has finished, a second copy of the script starts running at the same time.

3. There are a number of ways things can now go wrong, for example:

(a) What if the first copy of the script reads in the data, then the second copy reads the same data, then the first copy updates the data, then the second copy updates the data? Answer: any changes made by the first copy of the script can get lost.

(b) What if the first and second copy of scripts are both adding multiple bits of new data to the store at the same time? For example, imagine each needs to store the headline, description and the name of the person posting a classified ad. Well, what can happen (with some scripts) is the two classified ads can get intermingled, so you might get (for example) HEADLINE-1, DESCRIPTION-1, HEADLINE-2, PERSON-1, DESCRIPTION-2, PERSON-2. Or worse yet, you might get bits of each part of each classified ad, mixed with the bits of the other. This type of thing is usually really bad news, as your data may consequently becoming unusable from that point on.

Does this sound too unlikely a problem to worry about? Don't bank on it... even if it happens only 1 time in 1,000, or 1 in 10,000, eventually it will happen: You need a solution.

So the real question is: is it possible for programmers to create scripts without these kinds of problems? Fortunately the answer is yes, and there are a number of ways that programmers can address it:

1. They can store each bit of data in a separate file. This isn't necessarily a total solution by itself (in particular, a script which just does this could still have problems if multiple copies of a script update the same file at the same time), but it does make data corruption less likely, and if corruption does occur, at least it won't corrupt the entire data store in one go.

2. They can use file-locking. This means that if one copy of a script is working with a file, another copy of the script is prevented from working on that file, until the first copy has finished. File-locking works if done correctly, but programming it into a script needs to be done very carefully and precisely, for every single possible case... even a tiny bug or omission can allow the possibility of data-corruption in through the backdoor!

3. They can use a database (such as MySQL) to store the data. Provided the data is properly structured in the database, the database handles the locking automatically. And, as the programmer doesn't have to write their own special locking routines, the possibility of bugs and omissions are much reduced.

PERFORMANCE PROBLEMS

Of course, avoiding having your data corrupted should be the paramount consideration in choosing a script, but is there anything else we need to be concerned about?

Answer: Performance

Of course, all webmasters are aiming to build busy high traffic web sites... but will your scripts be able to handle the load?

Go back and re-read the paragraph on file-locking. Now think about what would happen if all the classified ads on your classified page were stored in a single file (or all the links on your top site, or all the subscribers to your autoresponder, etc.).

What would happen?

Answer: Because each update can only be performed after the previous update has been completely finished, your site may be slow, or even unable to handle all your users' requests.

So what's the solution?

There's two options that programmers can use:

1. They can use lots of small files and file-lock each individually (for example, one per classified, one per top site listing, etc.). Of course, this needs to be handled very carefully...

2. They can use a database (like MySQL), as databases allow any one individual record ("row") to be updated, even when another is also being updated.

IN CONCLUSION

Now, let's summarise:

1. Scripts that store data in files need to use file-locking to avoid data-corruption, and they also need to break the data into separately updateable chunks to avoid performance problems on busy web sites.

2. Scripts that store data in databases (like MySQL), provided of course that they have been properly coded, are usually less likely to suffer from data-corruption or performance problems.

And one additional point:

3. Even the best script is not immune to hard-disk hardware failures, your web host being struck by lightning, and all the other snafus that can happen. So, do take regular back-ups of any data that you can't afford to lose!

In short, even if you're not a script programmer, you need to be aware of data storage issues. In future, when considering a script for your web site, don't be afraid to ask some hard questions about how it stores data and how well it handles multiple users.
More Articles from
Computer Hardware Guide Pg279
Auto Parts Search Engine
Build Your Own Gaming Computer
Clamp On Power Meter
Download Cs2 For Free
Download High Quality Images
Drop Ship Wholesale Product
Fiber Optic Network Cables
How To Become Secret Shopper
How To Find Pdf
How To Make Money With Website
Natures Secret Super Cleanse
Popular Lyrics Search Engine
Secret Sauce Level 3
Stabilize Motion After Effects
The Best Data Recovery
The Secret Of Success
The Undertaker Vs Big Daddy V
Watch The Secret Online For Free
The Secret You Must Know About Selling Digital Products Online
The Secrets of Choosing Ribbon Fiber
» More on
Computer Hardware Guide
  • Related Articles
  • Author
  • Most Popular
•Advanced Microsoft Access Training, by Rich Talbot
•Database In Microsoft Access, by Rich Talbot
•Help With Microsoft Access, by Christine Harrell
•Microsoft Access And Query, by Kenwilson
•Microsoft Access Database Development, by David Badurina
Sunil Tanna has sinced written about articles on various topics from Education, Computers and The Internet and Flirting Tips. . Sunil Tanna's top article generates over 1600 views. to your Favourites.
Best File Share Program
They can be part of the Clickbank affiliate network and by signing up free at Clickbank you can enjoy a 75 commission on all memberships that are obtained through you
 
A Guide to Business | Guide to Technology | Guide to Women | Guide to Health | Family Guide to | Travel & Vacations | Information on Cars

EditorialToday IT Hardwares has 2 sub sections. Such as Computer Guide and Hardware. With over 20,000 authors and writers, we are a well known online resource and editorial services site in United Kingdom, Canada & America . Here, we cover all the major topics from self help guide to A Guide to Business, Guide to Finance, Ideas for Marketing, Legal Guide, Lettre De Motivation, Guide to Insurance, Guide to Health, Guide to Medical, Military Service, Guide to Women, Pet Guide, Politics and Policy , Guide to Technology, The Travel Guide, Information on Cars, Entertainment Guide, Family Guide to, Hobbies and Interests, Quality Home Improvement, Arts & Humanities and many more.
About Editorial Today | Contact Us | Terms of Use | Submit an Article | Our Authors