superset icon indicating copy to clipboard operation
superset copied to clipboard

Can anyone please clarify the working of different kind of limits in the config

Open saurabh1-singh opened this issue 7 years ago • 14 comments

I want a clear description of these limits or if they affect each other, 1 ROW_LIMIT 2 VIZ_ROW_LIMIT 3 SQL_MAX_ROW 4 DISPLAY_MAX_ROW

saurabh1-singh avatar Oct 23 '19 12:10 saurabh1-singh

Issue-Label Bot is automatically applying the label #question to this issue, with a confidence of 0.71. Please mark this comment with :thumbsup: or :thumbsdown: to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

issue-label-bot[bot] avatar Oct 23 '19 12:10 issue-label-bot[bot]

I set all of the limits to 500 in the config.py (version 0.34.1), expecting that the limits within superset will be set accordingly.

ROW_LIMIT = 500
VIZ_ROW_LIMIT = 500
FILTER_SELECT_ROW_LIMIT = 500
SQLALCHEMY_TRACK_MODIFICATIONS = True
SUPERSET_WEBSERVER_TIMEOUT = 60

But unfortunately its not working.

image

Does those configuration parameter have a different purpose?

I just want to limit the rows for the superset users to 500, otherwise the query gets to large.

Best wishes

Stephan3555 avatar Oct 25 '19 10:10 Stephan3555

@mistercrunch can you help?

saurabh1-singh avatar Oct 27 '19 19:10 saurabh1-singh

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Dec 26 '19 19:12 stale[bot]

Any update on this?

gogitub avatar Apr 15 '20 08:04 gogitub

Not from my side. Still having the problem with too much rows

Stephan3555 avatar Apr 15 '20 11:04 Stephan3555

version 0.33.10402 has same problem where the default VIZ_ROW_LIMIT is 10000. Any changes to this config.py parameter are not working.

gogitub avatar Apr 16 '20 10:04 gogitub

Where to make this changes to set NO(none) row_limit in the incoming data? @mistercrunch @graceguo-supercat

Neel-rishabhsoft avatar Jul 13 '20 09:07 Neel-rishabhsoft

having same problem on 0.37, no change when setting on config.py

rubenSastre avatar Sep 29 '20 10:09 rubenSastre

This is a serious flaw in the setup. I want to create a histogram of the count of all of my users, caching should be the solution to any performance issues, not just limiting the throughput of data.

GeorgePearse avatar Feb 01 '22 16:02 GeorgePearse

@villebro @srinify it would be good to get to the bottom of this and properly document the configuration parameters in config.py

mistercrunch avatar Feb 01 '22 16:02 mistercrunch

The options seem to be hard-coded in the javascript file, independent of the python config file, in
./superset-frontend/src/explore/controls.jsx, on line 93

const ROW_LIMIT_OPTIONS = [10, 50, 100, 250, 500, 1000, 5000, 10000, 50000];

GeorgePearse avatar Feb 01 '22 16:02 GeorgePearse

There's a slight design mismatch here. Superset follows the BI tool design default of 'you must apply aggregations' (sure you can apply an average over 1, but it's clumsy) and yet also sets limits on the amount of data you can load in. The two do not work neatly together.

The problem could be solved by:

  1. Recommending that users write the aggregation into their SQL query and then chart the raw data.
  2. Allowing finer control of dataset limits. I suspect 50K is on the low side with sufficient column restrictions.

GeorgePearse avatar Feb 01 '22 17:02 GeorgePearse

Turned out I was getting frustrated at nothing, you can enter your own choice of row limit as @etr2460 kindly told me on the slack channel. I'll spread the news wherever I see similar confusion.

image

GeorgePearse avatar Feb 01 '22 17:02 GeorgePearse