pierrejego opened a new issue, #37843:
URL: https://github.com/apache/superset/issues/37843

   ### Bug description
   
   The Thematic Map (Cartodiagram) chart is very slow when using a polygon 
layer with a large number of polygons. Rendering becomes sluggish because 
geographic entities are parsed repeatedly. This seems related to how geometries 
are parsed in the cartodiagram plugin.
   
   To Reproduce
   
   Go to dashboard with a chart containing large number of polygon 
   See performance issues (very slow rendering when polygon count is high)
   
   Expected behavior
   
   The map should render polygons smoothly, even with large polygon layers, 
without repeatedly reparsing geometries.
   
   
   ### Screenshots/recordings
   
   
![Image](https://github.com/user-attachments/assets/1be54a37-e5a2-42fd-a147-32371b76e011)
   
   ### Superset version
   
   5.0.0
   
   ### Python version
   
   3.9
   
   ### Node version
   
   16
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   This issue seems caused by repeated parsing of geographic entities, which 
increases computation time on large polygon layers. The likely fix is to limit 
how often geometries are parsed and optimize the parsing logic.
   
   This is only for 
https://github.com/terrestris/superset/tree/5.0.0-custom/superset-frontend/plugins/plugin-chart-cartodiagram
   
   One way to make a quick win is to use simple geom instead of geom 
    ST_SimplifyPreserveTopology(geom, 50) AS geom 
   
   PR in progress
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [ ] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to