-
Notifications
You must be signed in to change notification settings - Fork 137
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
using query for count #308
Conversation
Signed-off-by: ryjiang <[email protected]>
Signed-off-by: ryjiang <[email protected]>
const collectionStatisticsRes = await this.getCollectionStatistics({ | ||
collection_name: name, | ||
}); | ||
count = collectionStatisticsRes.data.row_count; |
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.
Can we get the exact error code?
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.
they are formatting the error code. I don't want to use the error for now.
const collections = await CollectionHttp.getCollections({ | ||
type: ShowCollectionsType.InMemory, | ||
}); |
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.
Don’t we display all collections?
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.
Yes, we only show in memory collections.
After milvus 2.3, we can use query to get precise data count, in this pr, I modified showLoadedCollection api, so it will return precise data count if supported.
This fix #304