Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Multiple DB Insert

    I have an XML file that has roughly 55,000 records. I need to parse the
    contents of the file and store it in a database. The problem I'm having is
    that doing 55,000 inserts every hours will really cripple the server I'm using.
    I was wondering if anyone knew of a way for me to create the queries, or store
    up the variables, and do one insert at the end that updates or inserts multiple
    records. Any enlightment on this subject would be immensely appreciated.

    Abs0 Guest

  2. Similar Questions and Discussions

    1. insert multiple row
      How do i insert multiple rows in database. for example: I have 3 list: list1: a1,a2,a3,a4 list2: b1,b2,b3,b4 list3: c1,c2,c3,c4 I want to...
    2. insert multiple row and table
      I have table1 and table 2, one to many relationship. How do I save 3 rows in table 1 and one row in table 2 at the same time?
    3. Multiple Insert or Looping Insert
      I built an application on an Access DB that allows a dispatcher to log trucks in the field at their location as they call in. There are three...
    4. Insert Multiple INTO multiple table
      Is there an extension available that can insert into multiple database tables and then retrieve the ID of the first insert? Andy
    5. multiple insert problem !
      hi ! had to come right back... this time i'm trying to do a multiple insert. in my admin website i want to add users to a specific project. i...
  3. #2

    Default Re: Multiple DB Insert

    you could import them right into the data base. wiht out having to use CF
    jorgepino Guest

  4. #3

    Default Re: Multiple DB Insert

    The problem is, it's a dynamic file that I have to re-parse every hour. I'm going to setup a scheduled task to run the script every hour but don't want to tap out a CPU every hour in the process.
    Abs0 Guest

  5. #4

    Default Re: Multiple DB Insert

    are those 55k new records every hour?

    jorgepino Guest

  6. #5

    Default Re: Multiple DB Insert

    what database are you using?
    for MSsql here is some info
    [url]http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnanchor/html/anch_SQLXML.asp[/url]
    jorgepino Guest

  7. #6

    Default Re: Multiple DB Insert

    Yes, it's 55,000 records every hour into a MS SQL Server db.
    Abs0 Guest

  8. #7

    Default Re: Multiple DB Insert

    I would still make Mssql do the upload with T-sql
    jorgepino 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