Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Should I use locks?

    Hi All

    I'm really going to show my naivety now, but should I be using locks where
    possible when my ASP/MySQL DB site is posting data back to the DB?

    I don't have that many sequential (shall we say) posts and for example, to
    post an order into my DB it contains the header page data as 1 post and then
    an INSERT INTO / SELECT FROM query to take the data out of one table and put
    it into my ORDERLINES table shall we say?

    I've just noticed that when I used a conversion util to convert my Access DB
    data into a MySQL DB, above and below the list of many DDL inserts the DDL
    script locks the table before doing these inserts and then unlocks it once
    finished.

    Is it common practise to do this?

    Any pointers you can give would be appreciated.

    Rgds

    Laphan


    Laphan Guest

  2. Similar Questions and Discussions

    1. Animations locks up
      I have a basic 4 picture animation on a model website "contact us" page, picture 1 fades out, picture 2 fades in, picture 2 fades out, picture 3...
    2. How much memory do locks use?
      >>>>> "Kris" == Kris Koschik <kkoschik@ceridian.ca> writes: Kris> I've read that each DB2 lock uses the same amount of memory. Kris> This seems...
    3. DW MX Locks Up
      What's the size of your image folder? "juane moore" <webforumsuser@macromedia.com> wrote in message news:bfoiq8$he$1@forums.macromedia.com......
    4. Too many Locks
      Hi, I'm having a major decrease in performance, and I'm wondering if the number of spin locks are contributing to this. Enviroment Informix...
    5. My Wallstreet Locks Up
      Hi all, I have an old 14.1" Wallstreet 233 MHz running MacOS 8.6. (I know there are newer versions of MacOS) The problem is whenever I run...
  3. #2

    Default Re: Should I use locks?

    Laphan wrote:
    > Hi All
    >
    > I'm really going to show my naivety now, but should I be using locks
    > where possible when my ASP/MySQL DB site is posting data back to the
    > DB?
    >
    > I don't have that many sequential (shall we say) posts and for
    > example, to post an order into my DB it contains the header page data
    > as 1 post and then an INSERT INTO / SELECT FROM query to take the
    > data out of one table and put it into my ORDERLINES table shall we
    > say?
    >
    > I've just noticed that when I used a conversion util to convert my
    > Access DB data into a MySQL DB, above and below the list of many DDL
    > inserts the DDL script locks the table before doing these inserts and
    > then unlocks it once finished.
    >
    It is very rare that the programmer needs to override the locks that the
    database engine is already placing on the database objects. It is best not
    to interfere in the process unless one truly understands the ramifications
    (which simply cannot be taught in an email message)

    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"


    Bob Barrows [MVP] Guest

  4. #3

    Default Re: Should I use locks?

    Thanks Bob


    Bob Barrows [MVP] <reb01501@NOyahoo.SPAMcom> wrote in message
    news:#TImwywWEHA.3596@tk2msftngp13.phx.gbl...
    Laphan wrote:
    > Hi All
    >
    > I'm really going to show my naivety now, but should I be using locks
    > where possible when my ASP/MySQL DB site is posting data back to the
    > DB?
    >
    > I don't have that many sequential (shall we say) posts and for
    > example, to post an order into my DB it contains the header page data
    > as 1 post and then an INSERT INTO / SELECT FROM query to take the
    > data out of one table and put it into my ORDERLINES table shall we
    > say?
    >
    > I've just noticed that when I used a conversion util to convert my
    > Access DB data into a MySQL DB, above and below the list of many DDL
    > inserts the DDL script locks the table before doing these inserts and
    > then unlocks it once finished.
    >
    It is very rare that the programmer needs to override the locks that the
    database engine is already placing on the database objects. It is best not
    to interfere in the process unless one truly understands the ramifications
    (which simply cannot be taught in an email message)

    Bob Barrows
    --
    Microsoft MVP - ASP/ASP.NET
    Please reply to the newsgroup. This email account is my spam trap so I
    don't check it very often. If you must reply off-line, then remove the
    "NO SPAM"




    Laphan Guest

  5. #4

    Default Re: Should I use locks?

    Cursor & LockType Performance Report - 6/27/1999
    [url]http://www.4guysfromrolla.com/webtech/062799-3.report.shtml[/url]

    Cursor & LockType Performance Issues - 6/27/1999
    [url]http://www.4guysfromrolla.com/webtech/062799-3.shtml[/url]

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Designer
    [url]http://www.Bullschmidt.com[/url]
    ASP Designer Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Devdex [url]http://www.devdex.com[/url] ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139