Skip to content
This repository was archived by the owner on Apr 24, 2023. It is now read-only.
This repository was archived by the owner on Apr 24, 2023. It is now read-only.

Performance and memory usage on large collections #143

Description

@valentinalexeev

With canner 2.0.10 and above and Google Firestore as a back-end I'm running into performance problems and out-of-memory errors when editing collections with 400+ entities.

A single edit in <array ui="table"/> can result in jump in memory usage by ~400MB.

The issue seems to come from React component state update sequence where canner hocs/utils.js function parseConnectionToNormal traverses the whole collection on any view, save or edit of any field in any entity.

The memory snapshot after single save operation:
canner-memory png

Trace to the function:
canner-memory-code

The associated schema definition: https://gist.github.com/valentinalexeev/9fa39f3aabb1d83027c1b99ba097dc1b.

As a temporary workaround to avoid OOM I can use <array ui="tableRoute"/> however due to issue with filter state which is not saved on navigation it becomes unusable for editors to work with large content set.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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