Skip to content
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

Adding elements after index creation #19

Closed
mehrrsaa opened this issue Oct 19, 2018 · 2 comments
Closed

Adding elements after index creation #19

mehrrsaa opened this issue Oct 19, 2018 · 2 comments

Comments

@mehrrsaa
Copy link

mehrrsaa commented Oct 19, 2018

Hi,

I was wondering if NGT in python supports insertion of new elements after the index is built. Basically for scenarios that we want to grow the index object as the data grows without inserting all elements again and rebuilding a new index object.

Thanks,
Mehrsa

@masajiro
Copy link
Member

You can insert new objects to an existing index without rebuilding for all objects. If there is no bugs, the way of additional insertion is almost the same as the examples without create(). insert() and build_index() for ctypes or batch_insert() for pybind11 add only new objects into an existing index.

@mehrrsaa
Copy link
Author

Thank you for the answer @masajiro!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants