View Issue Details

IDProjectCategoryView StatusLast Update
0011786Talerotherpublic2026-09-19 13:23
ReporterFlorian Dold Assigned ToResolution deadline
ImplementerReviewer 
Release signed byDeployed by 
VerifierCommunicator 
Data protection authority notification requiredNo  
CSIRT notification requiredNo  
Estimated effort (hours)Actual effort (hours)0 
Fast-trackNo
Work packagenone
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status acknowledgedResolutionopen 
Target VersionSomeday 
Summary0011786: consider returning total number of results in paginated responses
DescriptionIt's a pretty common pattern to show the total number of results in paginated responsed.

I think that where we *can* cheaply return this information, we should!

This first needs a spec, i.e. we need to agree on some common name(s) for field(s) in various APIs.
TagsNo tags attached.

Required notifications

Address or linkRemarkAdded byNotifiedActions

Activities

Christian Grothoff

2026-09-18 21:12

manager   ~0030006

In PostgreSQL, the complexity of:

SELECT count(*) FROM table_name;

is generally O(n), where n is the number of rows in the table. pg_class.reltuples is an O(1) approach to get an *approximation*, but probably not good enough. So adding this would require a new table (!) where we would have to track the counter and UPDATE on every INSERT/DELETE. Doable, but painful and I'm not convinced worth the overhead...

Issue History

Date ModifiedUsernameFieldChange
2026-09-10 13:33Florian DoldNew Issue
2026-09-10 13:33Florian DoldStatusnew => assigned
2026-09-10 13:33Florian DoldAssigned To => Christian Grothoff
2026-09-18 21:12Christian GrothoffNote Added: 0030006
2026-09-18 21:13Christian GrothoffSeverityminor => feature
2026-09-18 21:13Christian GrothoffStatusassigned => acknowledged
2026-09-18 21:13Christian GrothoffTarget Version1.8 => Someday
2026-09-19 13:23Christian GrothoffAssigned ToChristian Grothoff =>