Problem: how to parallelize inserts in SQL Server (2008)
I do bulk numerical computation for scientific research in C # of multithreaded workers who basically do one thing: test thousands of possible configurations (matrix combinations) over a period of time (in days) and save the results in a SQL Server database.
If I store the results one after the other in the database (~ 300,000 rows per session * 100 sessions), one after another, I end up waiting hours for the storage process to complete.
Database design is very simple:
- Combined sets
CS_ID1, value A1, value B1, value C1
CS_ID2, value A2, value B2, value C2
.........
- Results for the day
CS_ID1, Day1, Result 1
CS_ID1, Day2, Result 2
CS_ID1, Day3, Result 3
.........
.........
CS_ID2, Day1, Result N
CS_ID2, Day2, Result N + 1
CS_ID2, Day3, Result N + 2
" " , #, LINQ/SQL . , . : , ,
: , ( ). , , , , , - (, "" -:-))
, .
, , # SQL Server DBA ( , , , , :-))
12 24Go RAM
EDIT:
Tiebreaker
: # SQl ( , , ).
NLog, , , . SQL: , . , .