Sometimes you may wish to prevent MongoDB from returning more results than required for processing. To set a limit, chain the limit function onto your call to find. For example, to only return three results, use this:

> db.info.find().limit(3)