Skip to content

[Data] Allow a configurable thread pool size for DataStore #3152

@tylerjroach

Description

@tylerjroach

Before opening, please confirm:

Language and Async Model

Java, Kotlin

Amplify Categories

DataStore

Gradle script dependencies

All versions of DataStore

Environment information

All versions of DataStore

Please include any relevant guides or documentation you're referencing

No response

Describe the feature request

SQLiteStorageAdapter spawns a thread pool size of 20 x number of processors. This is likely excessive, especially for devices that may have a large number of cpu cores, but low RAM.

DataStore's overall Thread Pool size could be made to be easily configurable, similar to how syncMaxConcurrentModels was implemented.

Initialization steps (if applicable)

No response

Code Snippet

// Put your code below this line.

Configuration File

No response

GraphQL Schema

// Put your schema below this line

Additional information and screenshots

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions