Files
documentdb/pg_helio_api
Vinod Sridharan 770f2cc6af Merged PR 1319767: Estimated DocumentsCount Support
### Does this PR have any customer impact?
Yes

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Feature/BugFix

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))
Improve performance of estimatedDocumentsCount

### Description
Mongo Spec specifies that count() without any filters maps to the "estimatedDocumentsCount" that uses statistics. In pgmongo we were using the full fidelity count in this path too. Instead use collStats with documentsCount to fetch the count if there's no filters/limit/skip.
2024-04-19 12:03:52 +03:00
..