Visitors to this site will know that I'm a big fan of d3.js. Crossfilter.js (see the link for details, credits, licensing and API usage) is a library to play around with large data sets, often in preparation for visualization with d3, and they fit very nicely together. It's also useful for data manipulation in Google Apps Script. Here's a GAS library enabling crossfilter.
In this example, we'll use DriverFusion to get data to play around with. In this case, I'm using the same list of airports I used for the Flight data from Fusion app, taken directly from a Fusion table
Take a look at the Crossfilter API reference for how do more things with this library.
See Database abstraction with google apps script and Google Apps Scripts snippets for more like this
Services > Desktop Liberation - the definitive resource for Google Apps Script and Microsoft Office automation > Google Apps Scripts snippets >