{"id":995,"date":"2010-01-21T23:20:37","date_gmt":"2010-01-21T22:20:37","guid":{"rendered":"http:\/\/soci.hu\/blog\/?p=995"},"modified":"2010-01-21T23:20:37","modified_gmt":"2010-01-21T22:20:37","slug":"parallelforeach-in-action","status":"publish","type":"post","link":"https:\/\/soci.hu\/blog\/index.php\/2010\/01\/21\/parallelforeach-in-action\/","title":{"rendered":"Parallel.ForEach in action"},"content":{"rendered":"<p>Im\u00e1dom, <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/dd460720%28VS.100%29.aspx\">nagyon \u00fcgyes dolog<\/a>. Csak az\u00e9rt nem hajtotta ki jobban a procikat, mert m\u00e1r nem gy\u0151zt\u00e9k a diszkek.<br \/>\n\u00c9rdekes probl\u00e9mak\u00e9nt m\u00e9g az j\u00f6tt el\u0151, hogy t\u00f6bb mint 100 sz\u00e1lat ind\u00edtott a Parallel, mert \u00fagy \u00e9rezte ez j\u00f3 lesz, de az Sql Server connection poolja alapban max. 100 kapcsolatot enged\u00e9lyez, \u00edgy egyes sz\u00e1lak bedugultak. Lejjebb lehet venni a sz\u00e1lak sz\u00e1m\u00e1t, vagy feljebb a poolt. Nekem 80 sz\u00e1l el\u00e9g volt, \u00fagyse gy\u0151zte m\u00e1r az SQL Server az adatokat.<\/p>\n<p><a href=\"http:\/\/soci.hu\/blog\/wp-content\/uploads\/2010\/01\/loadingwithparallelforeach.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/soci.hu\/blog\/wp-content\/uploads\/2010\/01\/loadingwithparallelforeach-300x193.png\" alt=\"\" title=\"P\u00e1rhuzamos adatbet\u00f6lt\u00e9s .NET 4 Parallel.ForEach-csel\" width=\"300\" height=\"193\" class=\"alignnone size-medium wp-image-996\" srcset=\"https:\/\/soci.hu\/blog\/wp-content\/uploads\/2010\/01\/loadingwithparallelforeach-300x193.png 300w, https:\/\/soci.hu\/blog\/wp-content\/uploads\/2010\/01\/loadingwithparallelforeach-600x387.png 600w, https:\/\/soci.hu\/blog\/wp-content\/uploads\/2010\/01\/loadingwithparallelforeach.png 1456w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Im\u00e1dom, nagyon \u00fcgyes dolog. Csak az\u00e9rt nem hajtotta ki jobban a procikat, mert m\u00e1r nem gy\u0151zt\u00e9k a diszkek. \u00c9rdekes probl\u00e9mak\u00e9nt m\u00e9g az&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25,6,4,58],"tags":[],"class_list":["post-995","post","type-post","status-publish","format-standard","hentry","category-adonet","category-adatbazisok","category-szakmai-elet","category-sql-server-2008"],"_links":{"self":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/995","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=995"}],"version-history":[{"count":1,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/995\/revisions"}],"predecessor-version":[{"id":997,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/posts\/995\/revisions\/997"}],"wp:attachment":[{"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=995"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=995"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/soci.hu\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=995"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}