Matt,
Yikes. That's even worse. Now if Azure is having a 'slow' day your
site isn't just slow, it's also returning incomplete results. (Sure,
5 seconds is a really long time. But still, to me, this all seems to
create an environment where my software is very unpredictable).
A query that returned the correct results yesterday can be wrong today
because a new User signed up and it put you over the 1,000 threshold.
That's horrific!
-Ryan
Also is there a way to get programmatic access to the MaxPageSize
variable so that I can write a 'GetAll' function like Everett's above,
without hard coding in the MaxPageSize?
-Ryan
If you want something interchangeable you can create an extension method that uses the session API but then calls session.Advanced.Evict() on all the entities before it returns
This is especially common in web application scenario since it's
stateless in the first place.