Skip to content

Speed up reorder when a lot of rows shown #26

@kieranhaycock

Description

@kieranhaycock

Hi

Ran into a performance problem when reordering a table with more than 300 rows. It actually gets slowly worse the more rows added.
After a bit of digging we found what was causing it to be slow:
image

The inserting causes the drag to not be as smooth as you would hope. If you are dragging a item up past 100+ items it can get very annoying.

The solution we came up with was to move that logic into a debounced method, meaning if the user stops dragging for x milliseconds it then calls the function. This has greatly improved the performance for dragging rows and is a lot more scalable.

However, I thought I would post on here to see if we were missing something?

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