I just realized that rather than marshaling all of the data to ActiveRecord objects, I could just read everything into a DataSet, and then marshal only the fields that you’re reading across the interop boundary. In this way an array of ActiveRecord object acts as a facade over a DataTable.
This could conceivably be used as a general technique for ActiveRecord communicating with other databases as well – the result set is stored in a C data structure to avoid the hit of creating an array of hashtables first.
I’ll have to hack out an implementation to see how effective this technique is.