Skip to content

[AnalyticalTable]: Abnormally long reaction times for selection when table has large data #4886

Open
@davidmobbssap

Description

@davidmobbssap

Describe the bug

Our component relies on the AnalyticalTable to display datasets, sometimes large ones.
In this case we have a big tree, and the user wishes to select (check in a multi-select table) a node. It takes more than 20 seconds for the click to be processed, this is way too long.

Isolated Example

https://codesandbox.io/p/sandbox/snowy-shape-hw4d99?file=%2Fsrc%2FApp.tsx%3A31%2C16

Reproduction steps

  1. Open the attached sandbox
  2. Expand node "A node with many children"
  3. Click on a check box for one of the "CHILD#" nodes
    4.Wait... You may even get a browser message about the page being unresponsive.
    5.After a while the node "A node with many children" finally gets the indeterminate state in its checkbox.
    ...

Expected Behaviour

The action should be instantaneous.
Our investigation seems to exhibit an algorithm in the useIndeterminateRowSelection plugin performing full tree scans upon selections, maybe this can be improved.

Screenshots or Videos

No response

UI5 Web Components for React Version

1.16.0

UI5 Web Components Version

1.14.0

Browser

Chrome, Edge

Operating System

MacOS, Windows

Additional Context

No response

Relevant log output

No response

Declaration

  • I’m not disclosing any internal or sensitive information.

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    Status

    Future

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions