Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

HibernateTemplate.FetchSize Property

Gets or sets the fetch size for this HibernateTemplate.

[Visual Basic]
Public Overrides Property FetchSize() As Integer
   Public Get
   End Get
   Public Set
   End Set
End Property
[C#]
public override int FetchSize { public get; public set; }

Property Value

The size of the fetch.

Remarks

This is important for processing large result sets: Setting this higher than the default value will increase processing speed at the cost of memory consumption; setting this lower can avoid transferring row data that will never be read by the application.

Default is 0, indicating to use the driver's default.

See Also

HibernateTemplate Class | Spring.Data.NHibernate Namespace