Generation of _id vs. ObjectId autogeneration in MongoDB
问题 I'm developing an application that create permalinks. I'm not sure how save the documents in MondoDB. Two strategies: ObjectId autogeneration MongoDB autogenerates the _id . I need to create an index on the permalink field because I get the information by the permalink. Also I can access to the creation time of the ObjectId, using the getTimestamp() method, so datetime fields seems to be redundant but if I delete this field I need two calls to MongoDB one to take the information and another