Re:Visual Studio 2010 released
by loikujhygthj on Monday April 12, 2010 @11:45AM
(#1259397)
>//does exactly what you think
Bring the database to a grinding halt when it tries to service 1000s of request for different rows in the same table at the same time in parallel rather than just access each line in order and sum them?
Is all the data you ever operate on stored in the database? Do you never load things into memory?
plinq only parallelizes in-memory operations and delegates the interaction with the data-store to whatever adapter you're using.
the AsParallel() should make it clear that you're taking an existing data-set (retrieved in whatever manner you like) and signifying you'd like to execute parallel operations on it.
Major new threading framework which let's you write things like:
and to parallelize your LINQ queries with the AsParallel() method: That's just the stuff which I'm most excited about. See http://msdn.microsoft.com/en-us/library/ms171868(VS.100).asp... for a more comprehensive list.