NearPy icon indicating copy to clipboard operation
NearPy copied to clipboard

Added store_many_vectors on Mongo Storage

Open etudor opened this issue 6 years ago • 3 comments

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.

etudor avatar Nov 20 '19 11:11 etudor

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

amorgun avatar Nov 21 '19 20:11 amorgun

@amorgun I have updated this

etudor avatar Nov 29 '19 13:11 etudor

@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.

amorgun avatar Nov 29 '19 19:11 amorgun