Contents

SKIndexSetMaximumBytesBeforeFlush(_:_:)

Not recommended. Sets the memory size limit for updates to an index, measured in bytes.

Declaration

func SKIndexSetMaximumBytesBeforeFlush(_ inIndex: SKIndex!, _ inBytesForUpdate: CFIndex)

Discussion

This function is rarely needed and is likely to be deprecated. Search Kit keeps track of index updates that are not yet committed to disk. Apple recommends using the default memory size limit for index updates, which is currently 2 million bytes.

Special Considerations

Apple recommends use of the SKIndexFlush(_:) function instead of SKIndexSetMaximumBytesBeforeFlush(_:_:).

Version-Notes

In OS X v10.3, the default memory size limit for index updates was 1 million bytes.

See Also

Managing Indexes