1
public IList<DtoContrato> ConsulteListaPorListaDeIds(List<Guid> listaIds)
{
return Conversor(Persistencia().Where(x => listaIds.Contains(x.Id)));
}
My question is, if the list of ids has 100,000 records for example, can nhibernate divide this list into several of 1000? because we know that in oracle clause IN only supports 1000 different records.
What would be the most performative way to perform this consultation?
It can generate some error knowing that the Persistence can be connected to both SQL and ORACLE?
It would be performatic to use:?
.Or(x => parteDaLista1(x.Id)).Or(x => parteDaLista2(x.Id)).Or(x => parteDaLista3(x.Id))
Has Amount restriction of Or that nhibernate supports before generating bank error?