Should I be concerned about IN expressions with hundreds of values in the array? For example:
myCriteria.Add(Restrictions.In("Id", myArrayOfHundredsOfItems);
Which results in the sql:
select * from MyTable where Id in (1,2,3,4, ...etc .. 900)
MSDN says "Including an extremely large number of values (many thousands) in an IN clause can consume resources and return errors 8623 or 8632."
OK, so 'many thousands' is out of the question. Is there any reason to avoid an array of maybe a few hundred item?