collection.load() #33471
Answered
by
yhmo
chaochen1998
asked this question in
Q&A and General discussion
collection.load()
#33471
-
你好,我现在创建了一个包含20M个512维(类型为np.float16)向量的collection,在查询时,加载到内存用了37秒,查询的时间很短可以忽略不计,我想问一下:
|
Beta Was this translation helpful? Give feedback.
Answered by
yhmo
May 30, 2024
Replies: 1 comment 8 replies
-
2000万个512维向量,数据量大约是38GB。load()的时间主要取决于数据量大小以及存储的读带宽。37秒读取38GB数据我觉得没什么问题,也没法加快。 |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
load()的意思是:通知milvus server,把这个collection的数据加载到服务端的内存里,只要你不用collection.release()去通知释放,那些数据就一直保持在服务端内存里。只有数据在内存里才能被查询。所以只要你调用了一次collection.load(),只要你不重启milvus服务端,那随便你客户端调多少次查询都行,调用了一次collection.load()之后就不需要再次调用load(),实际上就算你调用多次collection.load(),也只有第一次干活。