redash icon indicating copy to clipboard operation
redash copied to clipboard

Redash queries fail when working on small tables(~In KB) in BQ

Open ektagrover opened this issue 2 years ago • 1 comments

Issue Summary

Redash is browser seems to be executing a query for a very long time when running on small BQ tables (in KB's). This however never happens with Big tables (in MB/GB's) - is this a known issue . Plz note that the same queries(over small tables) will go through if directly triggered over BQ console

We filed a ticket to BQ support and here was their explanation.

BigQuery doesn't work well with large numbers of tiny queries, which I think is the root issue here. It is not a database product, but a large data warehouse that feels best with large amount of data and analytical queries. It is specifically documented below

https://cloud.google.com/bigquery/docs/best-practices-performance-patterns#dml_statements_that_update_or_insert_single_rows

Also attached is a screenshot of the tables.

Screenshot 2022-02-11 at 3 41 19 PM

Steps to Reproduce

Trigger a redash query over a table which has ~250 KB of data.

Technical details:

  • Redash Version:
  • Browser/OS:
  • How did you install Redash:

ektagrover avatar Feb 11 '22 10:02 ektagrover

Sorry to only now see this.

When you say the queries "fail", do you receive a specific error from Redash? Or do they just take a long time before eventually returning data?

susodapop avatar Jul 03 '22 03:07 susodapop

@ektagrover hey, have you got time to answer susodapop's questions above? Could you also post an example query (maybe with column names redacted for privacy)?

guidopetri avatar Oct 29 '23 02:10 guidopetri