I'm using Neo4j for a large graph of data, and using MongoDB to store detailed document information about individual nodes.
I need to be able to take the results of my graph traversals (sometimes up to 1000 bson_ids) and query Mongo for them. I've noticed that even with selects and limits, the performance isn't great.
Any ideas on how I can make this mapping more efficient?
$in
command? How large are the 1000 documents you're returning. If you're returning 1000 docs and they're each one MB in size, that's going to affect performance.