I used a regular session to load some items from the database via linq. The problem is that it caches entities, and the memory load increases very unjustifiably. Is there a way to replace a session with a stateless session without making many changes to the client code?
Cannot use Linq with IStatelessSession.
You can use all other query methods (Get, Criteria, HQL and SQL).
Update (2010-07-19): I believe Steve can add this to the NH 3.x provider)
Linq 3.1.0. . : https://nhibernate.jira.com/browse/NH-2211
Is lazy loading enabled?
I have no experience with LINQ to NHibernate, but in my application lazy loading makes a huge difference in performance.
Source: https://habr.com/ru/post/1739576/More articles:Call javascript function after loading div - javascriptКак предотвратить уязвимость произвольного кода в наших программах? - securityProblems with DotNetZip with encoding - c #(php), how to "save" information in completed forms correctly - securityhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1739575/tortoise-svn-soft-link-or-sharing-repository&usg=ALkJrhho8BO_x5gq9bABd63jdsoLguSqGgcrucial origin of vectors - mathSQL Query - 20 Mile Entries - Best Practice for Returning Information - sql-serverBlackberry Development Using NetBeans - netbeansGEM Version Requirements Obsolete - ruby-on-railsview is not displayed when ModelAndView returns - javaAll Articles