you can try the approximate_row_count() function (https://docs.tigerdata.com/api/latest/hyperfunctions/approximate_row_count/) which gives an immediate result.

Context: Stack Overflow #67953098 (accepted answer, 9 votes): I have a hyper table for exchange candle data set up using TimescaleDB. - TimescaleDB official image `timescale/timescaledb:latest-pg12` set up and running with Docker with the exact version string `starting PostgreSQL 12.6 on x86_64-pc-linux-musl, compiled by gcc (Alpine 10.2.1_pre1) 10.2.1 20201203, 64-bit` - Python 3 client - The table has 5 continuous aggregate views set up like here and around 15 colums Running the following query is slow (count query generated with SQLAlchemy): ``` SELECT count(*) AS count_1 FROM (SELECT my_hypertable.timestamp AS my_hypertable_timestamp FROM...