Skip to content

Delay and avoid expensive createCellDataForCell#714

Merged
alvarezguille merged 2 commits intomasterfrom
fix/713-improve-updateMarkedCellValues-performance
Mar 12, 2020
Merged

Delay and avoid expensive createCellDataForCell#714
alvarezguille merged 2 commits intomasterfrom
fix/713-improve-updateMarkedCellValues-performance

Conversation

@alvarezguille
Copy link
Member

@alvarezguille alvarezguille commented Mar 11, 2020

Computing cell data shouldn't be done for all rows as it has a big
performance impact
With this change cell data is only created for sent cells and formulas

This change doesn't prevent the large json in some responses, but it
does prevent the extensive computing time on server-side which was
causing the 5 minutes time to first byte (TTFB) for the server request.
Fixes #713


This change is Reviewable

Computing cell data shouldn't be done for all rows as it has a big
performance impact
With this change cell data is only created for sent cells and formulas

This change doesn't prevent the large json in some responses, but it
does prevent the extensive computing time on server-side which was
causing the 5 minutes time to first byte for the server request.
Fixes #713
@alvarezguille alvarezguille requested a review from tulioag March 11, 2020 09:33
Copy link
Contributor

@tulioag tulioag left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r1.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Member Author

@alvarezguille alvarezguille left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r2.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

Copy link
Member Author

@alvarezguille alvarezguille left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewable status: :shipit: complete! all files reviewed, all discussions resolved

@alvarezguille alvarezguille merged commit cadceb8 into master Mar 12, 2020
@alvarezguille alvarezguille deleted the fix/713-improve-updateMarkedCellValues-performance branch March 12, 2020 09:08
alvarezguille added a commit that referenced this pull request Apr 16, 2020
manolo pushed a commit to vaadin/flow-components that referenced this pull request Apr 27, 2022
vaadin/spreadsheet#714

Computing cell data shouldn't be done for all rows as it has a big
performance impact
With this change cell data is only created for sent cells and formulas

This change doesn't prevent the large json in some responses, but it
does prevent the extensive computing time on server-side which was
causing the 5 minutes time to first byte for the server request.
Fixes: vaadin/spreadsheet#713

Mark cells with formatting rules
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.

Selecting a value in a dropdown generates a large JSON file (~ 1.6MB)

2 participants