Contents

fetchLimit

The fetch limit of the fetch request.

Declaration

var fetchLimit: Int { get set }

Discussion

The fetch limit specifies the maximum number of objects that a request should return when executed.

If you set a fetch limit, the framework makes a best effort to improve efficiency, but does not guarantee it. For every object store except the SQL store, a fetch request executed with a fetch limit in effect simply performs an unlimited fetch and throws away the unasked for rows.

See Also

Specifying Fetch Constraints