Optimistic locking?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • jimi_usenet@hotmail.com

    #1

    Optimistic locking?

    Hi,

    Can anyone tell me if MySQL uses optimistic or pessimistic locking with
    InnoDB tables? And can this be modified in any way?
    When I use the search function on the mysql site, it only gives me
    search results for MaxDB...

    Regards
    /Jimi

  • Heikki Tuuri

    #2
    Re: Optimistic locking?

    Jimi,

    InnoDB uses traditional pessimistic two-phase locking. This is complemented
    by multiversioning (MVCC) that makes non-locking consistent reads possible.
    Thus, InnoDB is similar to PostgreSQL and Oracle in its transaction
    management.

    Best regards,

    Heikki

    Oracle Corp./Innobase Oy
    InnoDB - transactions, row level locking, and foreign keys for MySQL

    InnoDB Hot Backup - a hot backup tool for InnoDB which also backs up MyISAM
    tables
    http://www.innodb.com/order.php

    <jimi_usenet@ho tmail.com> kirjoitti
    viestissä:11333 49192.546496.15 0310@g43g2000cw a.googlegroups. com...[color=blue]
    > Hi,
    >
    > Can anyone tell me if MySQL uses optimistic or pessimistic locking with
    > InnoDB tables? And can this be modified in any way?
    > When I use the search function on the mysql site, it only gives me
    > search results for MaxDB...
    >
    > Regards
    > /Jimi
    >[/color]


    Comment

    Working...