var query = DocumentSession.Query<LogEntries_TextBanList.ReduceResult, LogEntries_TextBanList>()
.Take(2)
.ToArray();
Output:Request # 59: GET - 47 ms - <default> - 200 - /indexes/LogEntries/TextBanList?query=&start=0&pageSize=2&aggregation= None Query: Time: 46 ms Index: LogEntries/TextBanList Results: 2 returned out of 133 total. Request # 60: GET - 0 ms - <default> - 200 - /docs/GameServers/3 Request # 61: GET - 0 ms - <default> - 200 - /docs/LogEntries/6 Request # 62: GET - 0 ms - <default> - 200 - /docs/GameServers/2 Request # 63: GET - 0 ms - <default> - 200 - /docs/LogEntries/3
var query = DocumentSession .Query<LogEntries_TextBanList.ReduceResult, LogEntries_TextBanList>() .Customize(x => x.Include("GameServerId")) .Customize(x => x.Include("LogEntryId"));
So the return results shows me one of the LogEntry's I need to Load. So lets see if it exists?
yep. they exist.
I also did the following:
var asdsad = results.OrderBy(x => x.LogEntryId).Select(x => x.LogEntryId).ToArray();
and it returned lots of results and all the Id's were in the format: LogEntry/<some number>
and now .. when I goto the next line, I get my 30 max errors...
var bans = (from q in results orderby q.CreatedOn select new {
// snipped // GameServerName = DocumentSession.Load<GameServer>(q.GameServerId).Name, ClientName = DocumentSession.Load<LogEntry>(q.LogEntryId).ClientName, ClientIpAndPort = DocumentSession.Load<LogEntry>(q.LogEntryId).ClientIpAndPort,// snipped //}).ToList();
I just don't get it :(
Works with the DS, not with the Embedded DS.
HAHA!
So .. Embedded ignores Includes. Definitely didn't see that coming!
So this means when I use embedded mode for testing my controllers ... I have fail :(
So .. would the solution for a -TEST- project (and I want to emphasis the TEST part of that :P) is to set the MaxNumberOfRequestsPerSession to something large?