You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But after #6687, data is a nested dictionary. And len(data) only gives the number of keys it has. In most cases, there are only two keys, "columns" and "rows", so the data_length doesn't really give us useful information.
Steps to Reproduce
Search for data_length= in your logs.
Technical details:
Redash Version: 24.06.0-dev
The text was updated successfully, but these errors were encountered:
It works fine. The in-memory dictionary size is usually a lot larger than in-disk storage size such as a csv file due to Python's in-memory storage overheads but at least it gives us a relative value especially informative because I'm using data_length in a DataDog dashboard to monitor user's query result sizes
Issue Summary
Before this PR #6687, the data returned by query runners are json strings. Hence the
data_length
calculated bylen(data)
makes sense:redash/redash/tasks/queries/execution.py
Lines 194 to 200 in 60a12e9
But after #6687,
data
is a nested dictionary. Andlen(data)
only gives the number of keys it has. In most cases, there are only two keys, "columns" and "rows", so thedata_length
doesn't really give us useful information.Steps to Reproduce
Search for
data_length=
in your logs.Technical details:
The text was updated successfully, but these errors were encountered: