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
SELECT address, COUNT(*) AS total_count, SUM(CASE WHEN datetime(date_time) >= datetime('now', '-1 day') THEN 1 ELSE 0 END) AS count_24hr FROM data_points GROUP BY address ORDER BY total_count DESC;
Was introduced to include daily counts. It is taking a lot longer than the previous call, and for every connection to the database this is adding up.
We can:
either optimize the query,
optimize the python.
The text was updated successfully, but these errors were encountered:
The following:
Was introduced to include daily counts. It is taking a lot longer than the previous call, and for every connection to the database this is adding up.
We can:
The text was updated successfully, but these errors were encountered: