{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/annoy/issues/174","repository_url":"https://api.github.com/repos/spotify/annoy","labels_url":"https://api.github.com/repos/spotify/annoy/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/spotify/annoy/issues/174/comments","events_url":"https://api.github.com/repos/spotify/annoy/issues/174/events","html_url":"https://github.com/spotify/annoy/issues/174","id":178557913,"number":174,"title":"What's the recommended way of adding new items after build() has been called?","user":{"login":"Quasimondo","id":182098,"avatar_url":"https://avatars.githubusercontent.com/u/182098?v=3","gravatar_id":"","url":"https://api.github.com/users/Quasimondo","html_url":"https://github.com/Quasimondo","followers_url":"https://api.github.com/users/Quasimondo/followers","following_url":"https://api.github.com/users/Quasimondo/following{/other_user}","gists_url":"https://api.github.com/users/Quasimondo/gists{/gist_id}","starred_url":"https://api.github.com/users/Quasimondo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Quasimondo/subscriptions","organizations_url":"https://api.github.com/users/Quasimondo/orgs","repos_url":"https://api.github.com/users/Quasimondo/repos","events_url":"https://api.github.com/users/Quasimondo/events{/privacy}","received_events_url":"https://api.github.com/users/Quasimondo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-09-22T09:09:19Z","updated_at":"2016-10-27T01:16:38Z","closed_at":null,"body":"Right now I have to create a new instance, retrieve all the feature vectors by iterating over all the items in the old instance add them to the new one and finally unload the old one. Is there any better way?\r\n\r\nIt would be really nice to have something like an \"unbuild()\" method built in which would do that without having to temporarily double the memory requirements."},"comment":{"url":"https://api.github.com/repos/spotify/annoy/issues/comments/256521214","html_url":"https://github.com/spotify/annoy/issues/174#issuecomment-256521214","issue_url":"https://api.github.com/repos/spotify/annoy/issues/174","id":256521214,"user":{"login":"vadimkantorov","id":1041752,"avatar_url":"https://avatars.githubusercontent.com/u/1041752?v=3","gravatar_id":"","url":"https://api.github.com/users/vadimkantorov","html_url":"https://github.com/vadimkantorov","followers_url":"https://api.github.com/users/vadimkantorov/followers","following_url":"https://api.github.com/users/vadimkantorov/following{/other_user}","gists_url":"https://api.github.com/users/vadimkantorov/gists{/gist_id}","starred_url":"https://api.github.com/users/vadimkantorov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vadimkantorov/subscriptions","organizations_url":"https://api.github.com/users/vadimkantorov/orgs","repos_url":"https://api.github.com/users/vadimkantorov/repos","events_url":"https://api.github.com/users/vadimkantorov/events{/privacy}","received_events_url":"https://api.github.com/users/vadimkantorov/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T01:16:38Z","updated_at":"2016-10-27T01:16:38Z","body":"I'm also looking to dynamically update an index, but don't actually need to save it on disk: training a ConvNet, and need to update the index with freshly computed embeddings. Should calling `add_item(index_to_update, new_vector)` and periodically calling `build()` work?"}}
{"actor":{"display_login":"vadimkantorov"}}