I see in the hosted version of redash the smaller tiers will limit the query length to some number of minutes, I can’t find an environment variable however that will allow for the same access control in the self-hosted version. Is it possible to set an environment variable so user’s can query at most N minutes?

Similar we have some issues with user doing “select * from table” where table is a TB and taking down the node. Is there a way to have redash limit a query to only have return N Bytes? Just having the data truncated would be fine since we use redash as a adhoc and dashboarding tool.

It’s this environment variable: (note that it only applies to adhoc queries and not scheduled ones)

https://github.com/getredash/redash/blob/b91d4bdcaf24cf7f18e62ea36ec060f57173f0cc/redash/settings/init.py#L200

Not at the moment. You can follow this issue for updates: