Skip to content

Precision issue with number type in coordinate system for over 720k rows #4

Description

@hackerwins

What happened:

After adjusting the dimension to about 10 million rows in wafflebase as part of the goal to handle 2.1 billion rows, there was an issue with the precision of the number type in the scroll when rows exceeded 720k. This caused problems with displaying the scroll height accurately, resulting in values like height: 4.93921e+10px.

Screenshot 2024-08-02 at 4 34 25 PM

What you expected to happen:

The scroll should accurately display the height even with a large number of rows.

How to reproduce it (as minimally and precisely as possible):

  1. Adjust the dimension in Wafflebase to 10 million rows.
  2. Exceed 720k rows and observe the scroll's number type precision issue.

Anything else we need to know?:

To resolve this issue, the implementation of a virtual scroll is suggested for handling 2.1 billion rows effectively in the future. Currently, the speed of the application is not impacted negatively by this precision issue.

Environment:

  • Operating system: all
  • Browser and version: all
  • Wafflebase version: all

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions