You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "antonio-antuan (via GitHub)" <gi...@apache.org> on 2023/10/26 12:37:49 UTC

[I] server-side sorting initiated by a client [superset]

antonio-antuan opened a new issue, #25762:
URL: https://github.com/apache/superset/issues/25762

   I have a dataset (a virtual table) with thousands of records. The dataset is shown via Table chart. Server-side pagination is enabled there. Chart is added to a dashboard.   
   When I observe the dashboard I click on some column for sorting and it looks like sorting is performed only on client side. Is there any way to perform user-defined sorting on server-side?
   
   #### How to reproduce the bug
   
   1. Go to dashboard that have chart table with server-side pagination.
   2. Click on any column to make it sort
   
   ### Expected results
   
   Sorting is performed on server side
   
   ### Actual results
   
   Sorting is performed on client side
   
   #### Screenshots
   
   If applicable, add screenshots to help explain your problem.
   
   
   ### Environment
   
   (please complete the following information):
   
   - browser type and version: Firefox 118.0.2 (64-bit)
   - superset version: docker image apache/superset:3.0.0-py310
   - python version: py310 (see superset version)
   - node.js version: see superset version
   - any feature flags active: ALERT_REPORTS, EMBEDDED_SUPERSET, DASHBOARD_FILTERS_EXPERIMENTAL, DASHBOARD_NATIVE_FILTERS_SET, DASHBOARD_NATIVE_FILTERS, DASHBOARD_CROSS_FILTERS, ENABLE_TEMPLATE_PROCESSING, HORIZONTAL_FILTER_BAR, ALLOW_FULL_CSV_EXPORT, ENABLE_JAVASCRIPT_CONTROLS
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [*] I have checked the superset logs for python stacktraces and included it here as text if there are any.
   - [*] I have reproduced the issue with at least the latest released version of superset.
   - [*] I have checked the issue tracker for the same issue and I haven't found one similar.
   
   ### Additional context
   
   Add any other context about the problem here.
   


-- 
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: notifications-unsubscribe@superset.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] server-side sorting initiated by a client [superset]

Posted by "eram (via GitHub)" <gi...@apache.org>.
eram commented on issue #25762:
URL: https://github.com/apache/superset/issues/25762#issuecomment-1785332598

   ref https://github.com/apache/superset/issues/9527
   


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] server-side sorting initiated by a client [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas closed issue #25762: server-side sorting initiated by a client
URL: https://github.com/apache/superset/issues/25762


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] server-side sorting initiated by a client [superset]

Posted by "MclellandG (via GitHub)" <gi...@apache.org>.
MclellandG commented on issue #25762:
URL: https://github.com/apache/superset/issues/25762#issuecomment-2079455814

   I noticed that the Table component uses react-window, which supports [react-window-infinite-loader](https://npmjs.com/package/react-window-infinite-loader).   Would this not be a alternate approach to server side paging?   In this manner you'd be able to ditch page sizes, row limits, and treat the dataset in its entirety but only display the first X number of results visible on the page.   The expectation would be that filters would then be applied on the data as a whole, re-query the database with the filter and again only display the top X results, fetching more as the user scrolls down the page.
   I think the desired behaviour would be similar to how AgGrid does it's server side rendering


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] server-side sorting initiated by a client [superset]

Posted by "bkampsnl (via GitHub)" <gi...@apache.org>.
bkampsnl commented on issue #25762:
URL: https://github.com/apache/superset/issues/25762#issuecomment-2369288822

   Yes, this (lazy load) would be perfect. I have the samme issue that with large datasets it gets very slow and eventualy crashes my browser (Chrome). And then the sorting for all row option would be great.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] server-side sorting initiated by a client [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25762:
URL: https://github.com/apache/superset/issues/25762#issuecomment-4748661056

   Server-side pagination/sorting for Table charts has evolved considerably since this was filed. Closing as stale, but please reopen with details on a current release (6.x) if server-side sort still isn't behaving for your server-paginated table.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] server-side sorting initiated by a client [superset]

Posted by "MclellandG (via GitHub)" <gi...@apache.org>.
MclellandG commented on issue #25762:
URL: https://github.com/apache/superset/issues/25762#issuecomment-2075145477

   This issue also applies to the text filter for the table as well.   Entering a value in the search field applies only to the current page.  My expectation would be that it would re-query the entire data set, re-execute the query and apply the filter on the server-side, and then re-paginate the results on the client.  Unless I'm missing something there doesn't seem to be a way to search/text filter the entire data set.   To me this is a huge issue and severely limits the usefulness of the raw table chart for larger data sets.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] server-side sorting initiated by a client [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25762:
URL: https://github.com/apache/superset/issues/25762#issuecomment-4035381321

   Still confirmed on Superset 4.1.2 as of June 2025. A fix here would need to ensure that client-side sort requests are forwarded to the server (i.e., trigger a new query with the sort parameter) rather than sorting only the in-memory data. PRs welcome.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] server-side sorting initiated by a client [superset]

Posted by "ssidorenko (via GitHub)" <gi...@apache.org>.
ssidorenko commented on issue #25762:
URL: https://github.com/apache/superset/issues/25762#issuecomment-2980372562

   Yes, still the case on 4.1.12


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] server-side sorting initiated by a client [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25762:
URL: https://github.com/apache/superset/issues/25762#issuecomment-2040577207

   Here's a quick way to spin up a test dataset for anyone that wants to validate this:
   
   ```sql
   WITH RECURSIVE NumberSequence AS (
     SELECT 1 AS AscendingNum, 1000 AS DescendingNum
     UNION ALL
     SELECT AscendingNum + 1, DescendingNum - 1
     FROM NumberSequence
     WHERE AscendingNum < 2000 -- Change this limit to generate desired number of rows
   )
   SELECT *
   FROM NumberSequence;
   ```


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [I] server-side sorting initiated by a client [superset]

Posted by "rusackas (via GitHub)" <gi...@apache.org>.
rusackas commented on issue #25762:
URL: https://github.com/apache/superset/issues/25762#issuecomment-2802547664

   This has been silent for >200 days, and is at risk of being closed as stale/not-planned. Contributions welcome, obviously, but if anyone can at least validate that this is still the case in 4.1.2 and/or 5.0.0rc2, it would be much appreciated.


-- 
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: notifications-unsubscribe@superset.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org