Adrian Hills 2/12/2010

Sorting a DataTable - LINQ performance

Read Original

This technical article benchmarks three C#/.NET 3.5 methods for sorting an in-memory DataTable: DataView.Sort, DataTable.Select, and LINQ to DataSet. It details a test harness sorting tables from 100 to 2 million rows, presenting results showing LINQ to DataSet offers the best performance, especially as data volume scales, and explains the importance of immediate execution in the LINQ query.

Sorting a DataTable - LINQ performance

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

No top articles yet