Hmmm what kind of aggregations does your pivot table do? That is a lot of data for the pivot table to process through since it all happens in the front-end of your browser. The normal table visualization is quicker because it doesn’t do any add/subtract/divide operations.
As @k4s1m said, the pivot table component performs the pivot operation in the web browser. Comparing Excel and a web browser isn’t really valid, web browsers are not designed to manipulate large amounts of data in memory.
If you need to pivot large amounts of data i.e. more than a few thousand rows, then I suggest performing the pivot in the SQL query i.e. on the data source, not in the web browser. If the requirement is to pivot a large amount of data and this can’t pushed down to the data source then potentially Redash is not the appropriate tool.
Due to the fact this is occurring when it’s a very small amount of data (<10Kb data) but large numbers of rows, and the browser is not displaying any issues with memory, I am positing this is a problem with the frontend software rather than a browser limitation.
In this scenario the browser is the front end software. As far as I understand it, for the pivot table component all pivot calculations are run directly in the browser, not on any of the Redash containers or on the data source itself. The pivot visualisation component is useful for working with small amounts of data and I’ve used it successfully when the query result was a few thousand rows, but after that performance drops off. I don’t think there’s a software fix for this, it’s just a limitation of what you can do in a browser.
Comparable tools such as Tableau, Quicksight and Microstrategy rely on this kind of work being done in memory on a server and only the result is rendered by the browser, which is not how Redash works.
The front end software is javascript and is handled by a Javascript engine. The fact that this only occurs while using certain pivot features suggests there could be a bug in the Redash javascript.
The pivot table comes from plotly. It’s called react-pivottable and is also open source. But it’s not developed by Redash directly. If you found a bug it would be best to report it to those developers. https://github.com/plotly/react-pivottable
I agree it sounds like a bug since 10kb shouldn’t be a problem.
1 Like
Login or sign up disabled while the site is in read only mode