Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Obtain number of BNS names registered against a namespace. #1622

Open
bilalanees98 opened this issue Apr 19, 2023 · 3 comments
Open

Obtain number of BNS names registered against a namespace. #1622

bilalanees98 opened this issue Apr 19, 2023 · 3 comments
Labels

Comments

@bilalanees98
Copy link

Is your feature request related to a problem? Please describe.
A way to figure out how many BNS Names have been registered overall and for a particular namespace.

Describe the solution you'd like
There already are APIs that return paginated responses of the names that are registered. An additional field of the total number of names known to the node would really help with BNS/Namespace analytics.

Describe alternatives you've considered
A way of figuring out these numbers is to run a binary search algo for figuring out the last valid value of the query param "page". Its a janky solution but it works.

Additional context
API doc links:

@github-project-automation github-project-automation bot moved this to Recent issues in API Board Apr 19, 2023
@smcclellan
Copy link
Contributor

@bilalanees98 Could you share more about your use case here, so we can better understand the impact of completing this?

@smcclellan smcclellan moved this from Recent issues to Icebox in API Board Apr 20, 2023
@bilalanees98
Copy link
Author

@smcclellan I am trying to collect and display the number of BNS names against each namespace on a website.
The idea is to share 'realtime' data with users.

@rafaelcr
Copy link
Collaborator

Thanks @bilalanees98 ... as far as technical implementation @smcclellan this would involve creating a new PG materialized view that keeps total domain count for each available namespace. I have set the priority and size accordingly.

@smcclellan smcclellan moved this from Icebox to Backlog in API Board Jul 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: 📋 Backlog
Development

No branches or pull requests

3 participants