<< previous page   --   table of contents   --   next page >>
| | | | | | | |
  • Return to Table of Contents
  • Table of Contents

    1. General Information
    2. MySQL Installation
    3. Tutorial Introduction
    4. Database Administration
    5. MySQL Optimisation
    6. MySQL Language Reference
    7. MySQL Table Types
    8. MySQL APIs
    9. Extending MySQL

    36 MySQL Technical Reference for Version 4.0.3 However,  the  non-transactional  table  types  in  MySQL  Server  such  as  MyISAM  follow  an- other paradigm for data integrity called \Atomic Operations."  Atomic operations often o er equal or even better integrity with much better performance.  With MySQL Server supporting both paradigms, the user is able to decide if he needs the speed of atomic op- erations or if he need to use transactional features in his applications.  This choice can be made on a per-table basis. How does one use the features of MySQL Server to maintain rigorous integrity and how do these features compare with the transactional paradigm? 1.  In the transactional paradigm, if your applications are written in a way that is depen- dent on the calling of ROLLBACK instead of COMMIT in critical situations, transactions are more convenient.  Transactions also ensure that un nished updates or corrupting activities are not committed to the database; the server is given the opportunity to do an automatic rollback and your database is saved. MySQL Server, in almost all cases, allows you to resolve potential problems by including simple checks before updates and by running simple scripts that check the databases for inconsistencies and automatically repair or warn if such an inconsistency occurs. Note that just by using the MySQL log or even adding one extra log, one can normally x tables perfectly with no data integrity loss. 2.  More often than not, fatal transactional updates can be rewritten to be atomic.  Gen- erally speaking, all integrity problems that transactions solve can be done with LOCK TABLES or atomic updates, ensuring that you never will get an automatic abort from the database, which is a common problem with transactional databases. 3.  Even  a  transactional  system  can  lose  data  if  the  server  goes  down.   The  di erence between di erent systems lies in just how small the time-lap is where they could lose data.  No system is 100% secure, only \secure enough."  Even Oracle, reputed to be the safest of transactional databases, is reported to sometimes lose data in such situations. To be safe with MySQL Server,  whether using transactional tables or not,  you only need  to  have  backups  and  have  the  update  logging  turned  on.   With  this  you  can recover from any situation that you could with any other transactional database.  It is, of course, always good to have backups, independent of which database you use. The transactional paradigm has its bene ts and its drawbacks.  Many users and application developers depend on the ease with which they can code around problems where an abort appears  to  be,  or  is  necessary.   However,  even  if  you  are  new  to  the  atomic  operations paradigm,  or  more  familiar  with  transactions,  do  consider  the  speed  bene t  that  non- transactional tables can o er on the order of three to ve times the speed of the fastest and most optimally tuned transactional tables. In situations where integrity is of highest importance, MySQL Server o ers transaction-level or better reliability and integrity even for non-transactional tables.  If you lock tables with LOCK TABLES, all updates will stall until any integrity checks are made.  If you only obtain a read lock (as opposed to a write lock), reads and inserts are still allowed to happen.  The new inserted records will not be seen by any of the clients that have a read lock until they release their read locks.  With INSERT DELAYED you can queue inserts into a local queue, until the locks are released, without having the client wait for the insert to complete.  See Section 6.4.4 [INSERT DELAYED], page 457.
     

    Customer Support CentreMySQL Reference Manual

    Web Hosting Services
    UNIX WEB HOSTING
    SUPPORT & FAQ's
    TERMS OF USE
    Domain Services
    DOMAIN REGISTRATION
    MANAGE YOUR ACCOUNT
    SUPPORT & FAQ's
    TERMS OF USE
    SITE MAP
    Home
    Hosting Plans | Domain Registration | About Us | Contact Us | Site Map
    Terms of Use | Privacy Policy | Guarantees
    Merchant Accounts

    SpiritHost - web hosting for spiritual and education sites
    SpiritHit.com - Religious and Spiritual Portal
  • Return to Table of Contents
  • Back to top

  • Web Hosting: Manuals & FAQ's

    1. Unix-Based Web Hosting
    2. Unix Dedicated Servers
    3. Windows Dedicated Servers
    4. CuteFTP User’s Guide
    5. CuteHTML User’s Guide
    6. WS_FTP Pro User's Guide
    7. Miva Order User's Guide
    8. Miva Merchant User's Guide