microsoft / microsoft/vscode-documentdb

Add Document Count Visibility

Open
#175 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

user feedback
Dominant language
TypeScript
Stars
31
Forks
22
Avg merge
2d 20h
Merged PRs (30d)
21

Description

Currently, there is no indication of how many documents exist in a collection, making it difficult for users to assess the size of their data or plan queries efficiently. This feature will focus on adding document count visibility in key areas of the UI for quick access.

Proposed Solution:

  1. Immediate Enhancement:

    • Display the document count in the Collection View when a query is run (make the count available on demand)
    • Show the document count in the Tree View, visible ahead of opening a collection.
    • This approach focuses on leveraging existing UI elements, enabling quicker implementation without requiring a comprehensive new interface.
  2. Future Work:

    • A dashboard will be developed to provide high-level insights, including document counts, for all collections within a database. This will offer a more comprehensive view of data at a glance.

Additional Consideration:

  • Ensure that fetching document counts is efficient and doesn’t introduce performance bottlenecks, especially for collections without indexes.
  • Provide a clear loading state or fallback for cases where counts take time to compute.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Collection View and Tree View entry points and trace how collection data is fetched and displayed. Determine how document counts can be requested on demand, including loading or fallback behavior, while avoiding performance bottlenecks for collections without indexes. Done means both views expose the count and the existing UI remains responsive.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
databases, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.