Contents

fetchOffset

The fetch offset of the fetch request.

Declaration

var fetchOffset: Int { get set }

Discussion

The default value is 0.

This setting allows you to specify an offset at which rows will begin being returned. Effectively, the request skips the specified number of matching entries. For example, given a fetch that typically returns a, b, c, d, specifying an offset of 1 will return b, c, d, and an offset of 4 will return an empty array. Offsets are ignored in nested requests such as subqueries.

This property can be used to restrict the working set of data. In combination with fetchLimit, you can create a subrange of an arbitrary result set.

See Also

Specifying Fetch Constraints