加载具有许多记录(1000 万)的表的最佳方法是什么。
目前,我执行以下操作:
Session.QueryOver<Table>().List();
我得到以下异常:
threw exception:
NHibernate.Exceptions.GenericADOException: could not execute query
[ SELECT this_.Id as Id7_0_, this_.Tag as Tag7_0_, this_.Vss as Vss7_0_, this_.checkpoint_id as checkpoint4_7_0_, this_.vpg_id as vpg5_7_0_ FROM "CheckpointToProtectionGroup" this_ ]
[SQL: SELECT this_.Id as Id7_0_, this_.Tag as Tag7_0_, this_.Vss as Vss7_0_, this_.checkpoint_id as checkpoint4_7_0_, this_.vpg_id as vpg5_7_0_ FROM "CheckpointToProtectionGroup" this_] ---> System.OutOfMemoryException: Exception of type 'System.OutOfMemoryException' was thrown.