SearchResultsView

  • The YapDatabaseSearchQueue class assists in UI based searches, where the database is tasked in keeping up with the user’s typing.

    Here’s how it works:

    • The user enters a new character in the search field.
    • You enqueue the proper query, and asynchronously start the search using performSearchWithQueue.
    • Rather than performing every single search (for every single enqueued query), the database can flush the queue, and perform the most recent query.

    When the search overhead is low, the database will keep up with the user’s typing. But when the search overhead is higher, this allows for optimizations that help better meet UI expectations.

    This class is thread-safe.

    See more

    Declaration

    Objective-C

    @interface YapDatabaseSearchQueue : NSObject

    Swift

    class YapDatabaseSearchQueue : NSObject