Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add admin-configurable global query refresh cooldown to prevent unnecessary cost #7675

Copy link
Copy link
@Lee2532

Description

@Lee2532
Issue body actions

Background

In environments using cost-based query engines such as BigQuery, each query execution incurs a direct cost. Currently, Redash allows users to freely refresh queries or dashboards without any restriction, which can lead to excessive and unnecessary query executions.

Problem

  • Users can repeatedly trigger query executions without limits
  • In cost-based systems (e.g., BigQuery), this results in unnecessary charges
  • Accidental frequent refreshes can significantly increase operational costs
  • No centralized control for administrators to mitigate this behavior

Proposed Solution

Introduce a global query refresh cooldown configurable by administrators.

Key Features

  • Add a setting in the admin panel to define a minimum refresh interval (in seconds)
  • Apply this cooldown globally to all users
  • Prevent query execution if a user attempts to refresh within the configured interval

Expected Behavior

  • Admin sets a cooldown value (e.g., 60 seconds)
  • When a query is executed, the timestamp is recorded
  • Any subsequent execution attempts within the cooldown period are rejected
  • Queries can be executed normally once the cooldown period has passed

Motivation

This feature helps:

  • Prevent unnecessary costs in systems like BigQuery
  • Provide administrators with control over query execution frequency
  • Improve cost efficiency and system stability in shared environments
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.