$in between MongoDB and DocumentDB

When I do some tests between MongoDB and DocumentDB, I find some performance issue in DocumentDB.

like these , about 800 elements
db.xxx.find({code:{$in:[“1”,“2”,“3”…]}});
or
db.xxx.find({$or:[{code:“1”},{code:“2”},{code:“3”}…]});

the documentDB has bad performance which compare to DocumentDB .

And who can tell me why ? Looking forward your response , thank you .

Welcome to the MongoDB Community @Huang_Huang !

Amazon DocumentDB is an independent emulation of a subset of features for the associated MongoDB server version they claim compatibility with.

The server implementations do not have any code in common, so it is not surprising if there are differences (sometimes significant) in behaviour and feature support.

If you are trying to understand performance issues for DocumentDB, I recommend asking on Stack Overflow or an AWS product community: Newest 'aws-documentdb' Questions - Stack Overflow.

Regards,
Stennie

1 Like

Thanks a lot. I read the file

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.