What are naming conventions for MongoDB?

后端 未结 6 1067
梦如初夏
梦如初夏 2020-12-22 15:47

Is there a set of preferred naming conventions for MongoDB entitites such as databases, collections, field names?

I was thinking along these lines:

  • Dat
6条回答
  •  我在风中等你
    2020-12-22 16:40

    Until we get SERVER-863 keeping the field names as short as possible is advisable especially where you have a lot of records.

    Depending on your use case, field names can have a huge impact on storage. Cant understand why this is not a higher priority for MongoDb, as this will have a positive impact on all users. If nothing else, we can start being more descriptive with our field names, without thinking twice about bandwidth & storage costs.

    Please do vote.

提交回复
热议问题