I need to efficiently load a large number of entities based on a list of ad hoc IDs. Unfortunately it doesn't look like the 2nd level cache is checked first when making "Restrictions.In(Projections.Id(), ids)" criteria queries.
I guess I'm looking for something similar to "ISession.Load" that takes a collection of IDs (instead of just one) and only execute an IN query for entities that can't be found in either the 1st or 2nd level caches. If nothing like this exists then what's the easiest way to check the two caches manually without resorting to reflection? -- You received this message because you are subscribed to the Google Groups "nhusers" group. To view this discussion on the web visit https://groups.google.com/d/msg/nhusers/-/o32Lv6bMr2oJ. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/nhusers?hl=en.
