Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
MongodbQuery#list() is calling cursor.size() which is an additional mongo query #856
MongodbQuery#list() is calling cursor.size() which is an additional mongo count query. It looks like this is used in couple of places in this file. cursor.size() seems to be used to construct exact size ArrayList. I think the count query can be more expensive than re-sizing the ArrayList.