Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 40 large dataset #1152

Merged
merged 9 commits into from
Jan 25, 2024
Merged

Issue 40 large dataset #1152

merged 9 commits into from
Jan 25, 2024

Conversation

heswell
Copy link
Contributor

@heswell heswell commented Jan 23, 2024

UI Table support for large datasets (> 1 million rows)

supports scrolling through full dataset with

  • scrollbar
  • scrolltrack
  • scrollwheel
  • page up/down
  • end key/home key
  • arrow key up/down

Copy link

netlify bot commented Jan 23, 2024

Deploy Preview for papaya-valkyrie-395400 canceled.

Name Link
🔨 Latest commit 8a130c2
🔍 Latest deploy log https://app.netlify.com/sites/papaya-valkyrie-395400/deploys/65b29fddc470fd0008af13c8

@heswell heswell force-pushed the issue_40_large_dataset branch 3 times, most recently from 905bfd0 to a9bcbe5 Compare January 24, 2024 10:42
@heswell heswell marked this pull request as ready for review January 24, 2024 14:25
@heswell heswell force-pushed the issue_40_large_dataset branch 2 times, most recently from 16ee53c to 5f8eb2c Compare January 24, 2024 15:02
vuu-ui/packages/vuu-utils/src/column-utils.ts Outdated Show resolved Hide resolved
Comment on lines +84 to +86
keySet.reset({ from: 0, to: 35 });
console.log(keySet.toDebugString());
console.log(` nextKeyValue ${keySet["nextKeyValue"]}`);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we remove the logs now that this is resolved?

firstRowRef.current = firstRow;
setRange({
from: firstRow,
to: firstRow + viewportRowCount + 1,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In other places, we're not adjusting index by + 1 for to: when setting range. Is this intentional here?

Copy link
Contributor Author

@heswell heswell Jan 25, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good spot, this used to be the norm, but I realised when writing tests that the +1 was not correct. Leaving this one is an oversight. fixed.

vuu-ui/packages/vuu-utils/src/range-utils.ts Outdated Show resolved Hide resolved
@heswell heswell force-pushed the issue_40_large_dataset branch from 5f8eb2c to 8a130c2 Compare January 25, 2024 17:52
@heswell heswell merged commit 3ddf8a8 into main Jan 25, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants