helicone icon indicating copy to clipboard operation
helicone copied to clipboard

[Bug]: Incorrect total request count and broken pagination after ingesting data

Open lokeshramchand-ctrl opened this issue 10 months ago β€’ 0 comments

What happened?

A bug happened!

After ingesting ~50,000 request records in to ClickHouse, the Requests page shows a total count of 807 pages, which does not reflect the actual number of records.

Changing the β€œRows per page” setting (e.g. 25, 100, 500) does not update the total count.

Navigating to the β€œLast” page results in a β€œData not found” state when using larger page sizes, even though data exists.

Smaller page sizes sometimes work, but pagination becomes inconsistent as page size increases.

This is default initial rows Image

This is after updating rows to 500 yet same number of pages

Image

This is how last page looks like with 500 rows per page (i.e) 807th page

Image

Relevant log output

c9caae17b4ce :) SELECT count(*)
FROM request_response_rmt
WHERE organization_id = '2d7d913e-2c36-492c-8ad5-9323fc3f79c1';


SELECT count(*)
FROM request_response_rmt
WHERE organization_id = '2d7d913e-2c36-492c-8ad5-9323fc3f79c1'

Query id: 7417362d-2dce-47b0-a2fd-f08f1ed7e890

   β”Œβ”€count()─┐
1. β”‚   50001 β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

1 row in set. Elapsed: 0.007 sec. Processed 50.00 thousand rows, 800.02 KB (7.17 million rows/s., 114.74 MB/s.)
Peak memory usage: 97.06 KiB.

Twitter / LinkedIn details

@LoRamCh , www.linkedin.com/in/lokeshramchand

lokeshramchand-ctrl avatar Jan 07 '26 17:01 lokeshramchand-ctrl