python - Calculating hamming distance with mongodb? -


say i've got large set of documents contain perceptual hashes (around 35,000), fastest way can (using mongodb) compare given hash x hashes in database , find ones distance less n.

i'm using python way, i'm assuming isn't possible natively in mongo, maybe possible optimize somehow?


Comments

Popular posts from this blog

Unlimited choices in BASH case statement -

Redirect to a HTTPS version using .htaccess -

javascript - jQuery: Add class depending on URL in the best way -