Skip to content

Clarify, rename or make clear that getWriteApi will make a new thread #167

@ZakShearman

Description

@ZakShearman

It's not very clear that calling getWriteApi unnecessarily (e.g in a repeated loop) is a bad idea when really, it is as a new thread will be created each time (a RxNewThreadScheduler). Only recently noticed this in my project when I ran a thread dump and I had over 1k threads.

Just to put some abusive cases as examples:

Basically, it's a mistake people are making and it's not evident until you have the issue (and have actually realised you've got the issue) and have to guess where the threads are coming from.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions