开发者

Nhibernate fetch

I fetch all data from table by hql query like"from table"(this query return only one column) Size of table 79000000(79 M) rows I limit size of answer by SetFirstResult(0) SetFetchSize(2000). It doesn't help . NHibernate throw OutOfMemory Exception.

I use Ora开发者_如何学Gocle. Thx


If you want to limit the resultset to 2000 you should use SetMaxResults(2000).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜