START TRANSACTION

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Frank Natoli

    #1

    START TRANSACTION

    After START TRANSACTION but before COMMIT, are intervening SQL transactions
    visible to other threads or processes? I understand that failing to perform
    a COMMIT, or explicitly performing a ROLLBACK, results in the transactions
    occurring after START TRANSACTION being undone. But until and if the
    transactions are undone, would queries to the database reveal those
    transactions? Thanks.


  • Good Man

    #2
    Re: START TRANSACTION

    "Frank Natoli" <franknatoli@wo rldnet.att.net. nospam> wrote in
    news:zNVbe.493$ pe3.324@newsrea d3.news.atl.ear thlink.net:
    [color=blue]
    > After START TRANSACTION but before COMMIT, are intervening SQL
    > transactions visible to other threads or processes? I understand that
    > failing to perform a COMMIT, or explicitly performing a ROLLBACK,
    > results in the transactions occurring after START TRANSACTION being
    > undone. But until and if the transactions are undone, would queries to
    > the database reveal those transactions? Thanks.[/color]

    nope.

    Comment

    • Bill Karwin

      #3
      Re: START TRANSACTION

      Frank Natoli wrote:[color=blue]
      > After START TRANSACTION but before COMMIT, are intervening SQL transactions
      > visible to other threads or processes? I understand that failing to perform
      > a COMMIT, or explicitly performing a ROLLBACK, results in the transactions
      > occurring after START TRANSACTION being undone. But until and if the
      > transactions are undone, would queries to the database reveal those
      > transactions? Thanks.[/color]

      If this were so, it would constitute what is called a "dirty read".
      That is, being able to view partially finished, uncommitted updates from
      another transaction.

      According to the documentation, InnoDB does not provide this style of
      transaction isolation (if it can be called that).

      See http://dev.mysql.com/doc/mysql/en/in...isolation.html
      for more information.

      Regards,
      Bill K.

      Comment

      • Bill Karwin

        #4
        Re: START TRANSACTION

        Bill Karwin wrote:[color=blue]
        > If this were so, it would constitute what is called a "dirty read". That
        > is, being able to view partially finished, uncommitted updates from
        > another transaction.
        >
        > According to the documentation, InnoDB does not provide this style of
        > transaction isolation (if it can be called that).
        >
        > See http://dev.mysql.com/doc/mysql/en/in...isolation.html
        > for more information.[/color]

        Correction: InnoDB does support dirty reads, the keyword is "READ
        UNCOMMITTED". See the web page referenced above for usage.

        Regards,
        Bill K.

        Comment

        Working...