pixelogik / NearPy

Python framework for fast (approximated) nearest neighbour search in large, high-dimensional data sets using different locality-sensitive hashes.
MIT License
759 stars 152 forks source link

Added store_many_vectors on Mongo Storage #87

Open etudor opened 4 years ago

etudor commented 4 years ago

Because I found this method to be very useful on Redis storage, I've added it to the mongo storage as well.

I haven't done a benchmark to compare what is the speed increase vs single inserts.

amorgun commented 4 years ago

@etudor The test is broken because it cannot import InsertOne. You should add pymongo to test requirements.

etudor commented 4 years ago

@amorgun I have updated this

amorgun commented 4 years ago

@etudor It looks like a lot of mongo tests are broken now in python2.7. Please, check if it is related to your changes. Maybe you should pin an older version of pymongo.