Product Reviews

Search Collections with ComponentOne LiveLINQ

LiveLINQ speeds up LINQ queries against in-memory collections by an order of magnitude -- but before you buy it, make sure you have the problems it solves.

ComponentOne LLC claims that its LiveLINQ product will speed up queries by orders of magnitude -- and, based on my testing, that's true. The tool works equally well in C# and Visual Basic, though all the provided sample code is in C#.

What the LiveLINQ libraries provide are some new extension methods for LINQ queries, chiefly the AsIndexed method, as used in this example:

var res = from o in nw.Order_Details. 
           where o.Discount.Indexed() 
             == .05
	        select o;

Assuming that the collection has more than a few objects in it, the first time you run this query, you'll get your results back in about half the time as you would without LiveLINQ. Subsequent queries against the Discount method will run in one-tenth the time. Really.

LiveLINQ won't work with every collection that LINQ will work with. You can't use the LiveLINQ extensions on a List, for instance. However, LiveLINQ will work with DataSets and their related objects, the LINQ to XML collections, BindingList (or anything that implements the IBindingList interface), ObservableCollection and others.

LiveLINQ also provides a new collection called IndexedCollection that provides a database-type View. For instance, you can run a LINQ query against an Indexed-Collection and bind the result to some Data-View. If you later add items to the collection that meet the criteria for the query, the DataView will automatically display the new entries.

[Click on image for larger view.]
Figure 1. LiveLINQ comes with an extensive set of examples, including several that demonstrate how to work with DataSets (though not with the Entity Framework).

Other Caveats
ComponentOne says on its Web site that LiveLINQ works with the Entity Framework, but that's all it says. You should be aware, for instance, that a LiveLINQ View isn't live relative to data in the database, just to in-memory changes. LiveLINQ doesn't follow typical component pricing: It costs $1,000 per developer without the Platinum Support package (discounts are available). This is $200 more than the entire ComponentOne

ASP.NET AJAX component package. But, if you need to solve response-time problems with large object collections, or hope to improve scalability by using caching, LiveLINQ looks like an outstanding solution.


ComponentOne LLC
Phone: 800-858-2739
Price: $1,000 (single developer without Platinum Support)
Quick Facts: Extensions to LINQ that speed up queries through indexing and providing database-like views.
Pros: Makes LINQ queries against collections such as DataSets run an order of magnitude faster.
Cons: Doesn't work with all Microsoft .NET Framework collections; pricing is a little steep.

About the Author

Peter Vogel is a system architect and principal in PH&V Information Services. PH&V provides full-stack consulting from UX design through object modeling to database design. Peter tweets about his VSM columns with the hashtag #vogelarticles. His blog posts on user experience design can be found at

comments powered by Disqus


  • Clustering Non-Numeric Data Using C#

    Clustering non-numeric -- or categorial -- data is surprisingly difficult, but it's explained here by resident data scientist Dr. James McCaffrey of Microsoft Research, who provides all the code you need for a complete system using an algorithm based on a metric called category utility (CU), a measure how much information you gain by clustering.

  • So What's Up with Microsoft's (and Everyone Else's) Love of Rust?

    Microsoft already stewards several popular programming languages -- C#, TypeScript, F# -- so what's up with its love of Rust, along with the rest of the world?

  • C# Steps Up Programming Language Popularity Ladder

    Microsoft's C# programming language climbed a year-over-year notch on the TIOBE Index, which measures popularity among developers.

  • VS Code Java Tool Updates Debugging, Refactoring

    The monthly update to the tooling that boosts Java development in the open source, cross-platform Visual Studio Code editor highlights debugging, refactoring and more.

  • Microsoft Plugs Away at Blazor for Mobile in Preview 3

    Microsoft is furthering its work to target mobile app development with Blazor, the ASP.NET Core offering that originally was developed to allow for C#-based web development instead of JavaScript through the use of WebAssembly for the client side.

.NET Insight

Sign up for our newsletter.

Terms and Privacy Policy consent

I agree to this site's Privacy Policy.

Upcoming Events