You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although I specify the argument of num_threads in Index.insert(), it seems that there is only one CPU working. If I "top" in the command line, there is only one process with about 100% CPU usage. And it also won't change when I change the value from 16 to 40 (40 CPUs on the machine).
In addition, I am using the Python API via jupyter notebook.
The text was updated successfully, but these errors were encountered:
Index.insert() consists of two steps: loading data and building index. Since the loading data is not parallelized, the parameter num_threads works only for the building index. It means that in the beginning insert() uses only one thread.
If you are trying to insert a huge amount of data, you should use insert_object() to reduce the data loading time and memory usage. Even though the article below is Japanese, the sample in it might be useful to use insert_object().
Although I specify the argument of num_threads in Index.insert(), it seems that there is only one CPU working. If I "top" in the command line, there is only one process with about 100% CPU usage. And it also won't change when I change the value from 16 to 40 (40 CPUs on the machine).
In addition, I am using the Python API via jupyter notebook.
The text was updated successfully, but these errors were encountered: