Mongodb query optimization

shape