Performance different in ExecuteReader

Jan 21, 2010 at 9:41 PM

We are using the latest 4.1 library to communicate with our iSeries using IBM's latest .NET provider and found that for some reason, iDataReader = cmd.ExecuteReader() is almost twice as fast as calling iDataReader = db.ExecuteReader.

Any ideas on why this might be the case?

Thanks!

Jan 22, 2010 at 3:53 AM

Hi,

I tried to compare the performance of the two as you've said. But it seems, I'm getting a different result, I'm not sure what I've missed. I followed this post http://alexpinsker.blogspot.com/2007/07/benchmarking-linq-vs.html . Can you post the code that you've used to compare the two ExecuteReader?

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com