- Messages
- 6,921
- Reaction score
- 25
- # of dives
- I just don't log dives
mikerault:Forgive me if I fail to believe...unless the Oracle app was totally screwed up from the start and way over spec'ed there is no way a single processor small C app is going to replace 16 processors unless they were terribly old and slow. There is obviously something left out of the story...
Mike
So you're an Oracle DBA, huh?
It's a merge, sort, split and write for web logs, which were running between 50 and 100GB/day.
The C app opens all the input files and output files simultaneously and uses a hash map to find the correct output file for each record in each input file. The inner loop consists of mostly nothing but raw file I/O and a few pointers to data structures.
Because the import and export are simultaneous for all files, and there is no seperate import or index and virtually no search overhead, it's much faster than Oracle, which requires that the data be imported and indexed before running a query for each output file, then writing out the results to the filesystem.
There's pretty much no way a general purpose database even has a chance of beating an app hand-coded for a specific application.
Terry