Skip to content

Flush grows memory significantly until crash #594

Closed
@thibauddavid

Description

@thibauddavid

Hi,

I'm using MixPanel 4.0.6.

When my share extension (which has a memory size limit) tries to flush, the memory grows until crashing.

It seems like loadEntitiesInBatch always uses a batchSize of Int.max, leading to readRows not using any limit for the SELECT query.
As a result, rows.append(entity) makes rows array growing unbounded.

I think loadEntitiesInBatch should be called in a paginated way for flushing to be memory-consistent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions