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 100mil records for example, can nhibernate split this list into several of 1000? because we know that in the oracle IN clause, it only supports 1000 different records.
What would be the most performative way to perform this query?
Can you generate an error knowing that Persistence can be connected to both SQL and ORACLE?
Would it be performative to use:?
.Or(x => parteDaLista1(x.Id)).Or(x => parteDaLista2(x.Id)).Or(x => parteDaLista3(x.Id))
Is there a restriction on the amount of Or that nhibernate supports before generating error in the database?