-
Notifications
You must be signed in to change notification settings - Fork 83
add query for counting databases in a cluster #1224
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
Conversation
|
Thanks for the documentation updates. The preview documentation has now been torn down - reopening this PR will republish it. |
modules/ROOT/pages/database-administration/standard-databases/manage-databases.adoc
Outdated
Show resolved
Hide resolved
…manage-databases.adoc Co-authored-by: Jens Pryce-Åklundh <112686610+JPryce-Aklundh@users.noreply.github.com>
renetapopova
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a small suggestion. Otherwise, it looks good to me. Thanks, @AlexicaWright!
| +-------+ | ||
| ---- | ||
|
|
||
| In a cluster, the `SHOW DATABASES` returns the number of allocations of databases and may be misleading if the number of distinct databases is desired. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| In a cluster, the `SHOW DATABASES` returns the number of allocations of databases and may be misleading if the number of distinct databases is desired. | |
| In a cluster, the command `SHOW DATABASES` returns the number of database allocations, which may be misleading if the number of distinct databases is desired. |
JPryce-Aklundh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small suggestion, but I think it looks good 👍
| === Show the number of databases | ||
|
|
||
| The number of databases can be seen using a `count()` aggregation with `YIELD` and `RETURN`. | ||
| The number of distinct databases can be seen using `YIELD` and a `count()` function in the `RETURN` clause to aggregate the number of `DISTINCT` database names. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The number of distinct databases can be seen using `YIELD` and a `count()` function in the `RETURN` clause to aggregate the number of `DISTINCT` database names. | |
| The number of `DISTINCT` databases can be seen using `YIELD` and the `count()` function in the `RETURN` clause: |
Co-authored-by: Jens Pryce-Åklundh <112686610+JPryce-Aklundh@users.noreply.github.com>
No description provided.