In your code, how many InfoObjects are you querying for in the same batch? Thinking about it, in this case I might cut down the number of instances to a couple hundred at a time instead of the 10,000 I posted above to see whether that will speed up the query so that it doesn't time out.
-Dell