-
Notifications
You must be signed in to change notification settings - Fork 129
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
It takes very long time to show index info. #338
Comments
Maybe we need to cache the index info. will fix this in the next release. |
On my testing on a standalone milvus deployed with docker, create 10 indexes on a collection, it is not slow to get the index info. Can you give me more information about your collection and data size? |
Yes, below is the detailed info.
|
indexcoord.log |
don't know why.. I've test a 5 indexes collection with 60m data on Milvus v2.2.15, everything looks good. it will be a little bit slow, but it's not like a huge performance impact if you have big data. @yanliang567 do you have any idea on this? does it relate to the specific milvus version? |
@congguosn could you please retry with milvus sdk, e.g. pymilvus to check the latency is on millvus side or on web side. |
This is not Attu bug, it is an issue of milvus. I just talked with Zhangcai.
To calculate indexed row count, the indexcorrd iterates each segment in the collection. With more segments, it takes more time to calculate. From the log, I saw each index takes 0.5 seconds to calculate the indexed row count. 10 indexes cost 5 seconds. Currently, this behavior is expected. |
Is there any improvement about the newer version, for example: 2.3.x ? |
I see, but seems FE is calling api/v1/collections for nearly every page on attu, which will try to get Index Info then. That maybe unnecessary in my opinion. FE -> api/v1/collections -> getAllCollections -> getIndexInfo (long time call) |
yeah, we can optimize this. |
https://github.com/zilliztech/attu/releases/tag/v2.3.5 is just released, it should improve the performance for the case. |
Describe the bug:
I have a collection with 10 fields, and each field has its individual index. When I am trying to interact with milvus with attu, the page became very sluggish. I found the time mostly spent on obtaining the index info which is called in below code snippet.
const indexRes = await this.getIndexInfo(...)
Steps to reproduce:
Attu version:
v2.3.2
The text was updated successfully, but these errors were encountered: