feat: add dedicated row count endpoint
@gordonmurray is already working on this.
Since Apr 6, 2026.
Assessment
This issue has not been assessed yet.
Description
Currently, getting a row count requires calling /datasets/{name}/rows and reading the total field from the paginated response, which also fetches and serializes actual row data.
A lightweight count endpoint would be useful for health checks, monitoring dashboards, and validation scripts that just need to know how many rows a dataset has.
Proposed implementation:
@app.get("/datasets/{dataset_name}/count")
async def get_dataset_count(dataset_name: str):
validate_dataset_name(dataset_name)
db = get_lance_connection()
table = db.open_table(dataset_name)
return {"dataset": dataset_name, "count": table.count_rows()}
One endpoint, no frontend changes needed.
- Dominant language
- Python
- Stars
- 65
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from lance-format/lance-data-viewer
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 68/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
lance-format/lance-data-viewer#89 · 2 comments ·
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 38/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 45/100
All issues in lance-format/lance-data-viewer
Similar issues
-
Validate non-divisible effective batch sizes in the Unsloth LoRA backendPossibly taken @debesh-biswas claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
`rx.Model` event arguments emit `PydanticDeprecatedSince20` once per payload keyPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 1/5 Under an hour Newbie friendliness 88/100
reflex-dev/reflex#7634 · 1 comment ·
Maintainers usually reply within 2 days
-
documentation
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
topoteretes/cognee#6239 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
ranaroussi/yfinance#3009 ·
Maintainers usually reply within 1 day
-
Test discovery aborts on GPU builds without cuStateVec: check_cuStateVec expects a failed result but set_config() now raises RuntimeErrorPossibly taken @dmeliksetian claimed this today. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Qiskit/qiskit-aer#2495 ·
Maintainers usually reply within 1 day