I have currently translated my blogging from Linq2Sql to NHIbernate.
I ran into the following performance issue: I have one table: Messages, which has identifiers, headers, PostContent, DateCreated columns, etc.
The problem is that when I create the "Recent Posts List", I donβt need all PostContent.
In Linq2Sql, you can set lazy loading on a single property, so it will not be part of the SQL query until you ask about this property.
I tried to do this using Fluent NHibernate by doing the following:
Map(x => x.PostContent).LazyLoad();
This did not work. It seems that NHibernate does not support this, so my question is: how can I fix this?
Is it really lazy to upload my property without moving the contents to a separate table?
Thanks in advance!
source
share