datagrok-ai / public

Public package repository for the Datagrok.ai platform
MIT License
43 stars 26 forks source link

#3032: Page is freezing for a while when colour by column is applied in some cases (large number of categories + "starts with") #3032

Closed katerina-stepanova closed 2 weeks ago

katerina-stepanova commented 3 weeks ago

v1.20.2

Steps to reproduce:

  1. Open a table with 6-10K rows
  2. Apply categorical colouring for some column: around 1000 categories, .color-coding-match-type = starts with, .color-coding-fallback-color is set
  3. Add a scatter plot
  4. Set scatter plot colouring by that column with categorical colours

Following table and layout with colours already set can be used to reproduce the issue: PubChemExampleSlowColours.zip It approximates the amount of data from the real use case scenario.

Expected results: performance should be improved, colouring should be applied more quickly and without freezing the page. Actual results: the page is freezing for a while when colouring is applied. 2024-09-10_15-38-31 (1)

dnillovna commented 3 weeks ago

This issue has been mirrored in Jira: https://reddata.atlassian.net/browse/GROK-16646