The size of the final db is 622mb. My systems have enough memory for this.
I did some benchmarks again with a
different pc (my home pc) and here are the latest results for the same task:
Without ExecuteNonQuery line, the loop ends in 57 seconds.
With in memory database and inserts, the loop ends in 240 seconds.
With a file db on disk (but different then the oracle source disk) and inserts, the loop ends in 249 seconds.
With a fast ram disk drive software (I used gillisoft ramdisk 3.3 and according to some benchmarks, it is one of the fastest ram disks available), the loop ends in 252 seconds.
With a file db on the same disk with oracle db files, the loop ends in 253 seconds.
I also changed the malloc, free and realloc functions of sqlite3 source with some free functions dlmalloc, dlfree and dlrealloc and nothing change for the speed part.
My hardware info:
Intel Core 2 Duo E8500, 3166 MHz, 3328 MB (DDR2-800 DDR2 SDRAM), ST3500410AS (500 GB, 7200 RPM, SATA-II), ST31000528AS (1000 GB, 7200 RPM, SATA-II)
How can ram and disk insert speeds be same?