Skip to content
This repository was archived by the owner on Jul 20, 2020. It is now read-only.
This repository was archived by the owner on Jul 20, 2020. It is now read-only.

Multiple threads #12

@eriktelepovsky

Description

@eriktelepovsky

All SwiftData operations are placed on a custom serial queue ("SwiftData.DatabaseQueue") and executed in a FIFO order. Thats great, but is there a way I could set my own queue? Imagine following scenario: I am saving a lot of data in background thread, but I don't want to freeze main UI thread in which the data are fetching/selecting. It is happening because all SQL queries are executed in same serial queue. It would be great if I can write into database in one queue and read from database in another.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions