Click here to Skip to main content
16,005,697 members
Home / Discussions / C#
   

C#

 
GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 10:54
Mogaambo11-Oct-08 10:54 
GeneralRe: out of memory exception Pin
Paul Conrad11-Oct-08 11:02
professionalPaul Conrad11-Oct-08 11:02 
GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 11:46
Mogaambo11-Oct-08 11:46 
GeneralRe: out of memory exception Pin
Colin Angus Mackay11-Oct-08 11:55
Colin Angus Mackay11-Oct-08 11:55 
GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 12:12
Mogaambo11-Oct-08 12:12 
GeneralRe: out of memory exception Pin
Colin Angus Mackay11-Oct-08 12:50
Colin Angus Mackay11-Oct-08 12:50 
GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 21:26
Mogaambo11-Oct-08 21:26 
GeneralRe: out of memory exception Pin
Colin Angus Mackay11-Oct-08 21:43
Colin Angus Mackay11-Oct-08 21:43 
You are not paying attention. Or you are not bothering to understand transactions.

Begin Transaction
  Start File Loop
    Start Data Chunk Loop
      Read upto 10,000 records from file
      Write those records to the database
    End Data Chunk Loop
  End File Loop
End Transaction


Each iteration around the Data Chunk Loop has one communication with the database (One "shot" per iteration)

If you have a million records you have 100 "shots" at writing to the database.


GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 22:23
Mogaambo11-Oct-08 22:23 
GeneralRe: out of memory exception Pin
Colin Angus Mackay11-Oct-08 22:38
Colin Angus Mackay11-Oct-08 22:38 
GeneralRe: out of memory exception Pin
Mogaambo11-Oct-08 23:13
Mogaambo11-Oct-08 23:13 
GeneralRe: out of memory exception Pin
#realJSOP12-Oct-08 0:02
professional#realJSOP12-Oct-08 0:02 
GeneralRe: out of memory exception Pin
Mogaambo12-Oct-08 0:05
Mogaambo12-Oct-08 0:05 
GeneralRe: out of memory exception Pin
#realJSOP12-Oct-08 0:57
professional#realJSOP12-Oct-08 0:57 
GeneralRe: out of memory exception Pin
Mogaambo12-Oct-08 11:20
Mogaambo12-Oct-08 11:20 
GeneralRe: out of memory exception Pin
Dave Kreskowiak12-Oct-08 4:23
mveDave Kreskowiak12-Oct-08 4:23 
GeneralRe: out of memory exception [modified] Pin
Mogaambo14-Oct-08 3:03
Mogaambo14-Oct-08 3:03 
GeneralRe: out of memory exception Pin
Colin Angus Mackay14-Oct-08 3:27
Colin Angus Mackay14-Oct-08 3:27 
GeneralRe: out of memory exception Pin
Dave Kreskowiak12-Oct-08 4:18
mveDave Kreskowiak12-Oct-08 4:18 
Questionask for advice for data access design pattern Pin
George_George11-Oct-08 3:16
George_George11-Oct-08 3:16 
AnswerRe: ask for advice for data access design pattern Pin
led mike12-Oct-08 7:17
led mike12-Oct-08 7:17 
GeneralRe: ask for advice for data access design pattern Pin
George_George13-Oct-08 3:53
George_George13-Oct-08 3:53 
GeneralRe: ask for advice for data access design pattern Pin
led mike13-Oct-08 6:49
led mike13-Oct-08 6:49 
GeneralRe: ask for advice for data access design pattern Pin
George_George14-Oct-08 2:50
George_George14-Oct-08 2:50 
GeneralRe: ask for advice for data access design pattern Pin
led mike14-Oct-08 5:55
led mike14-Oct-08 5:55 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.