国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Should I use string or objectid for non-primary key IDs in mongodb?
過去多啦不再A夢
過去多啦不再A夢 2017-05-02 09:25:26
0
3
812
{
    _id:ObjectId,
    otherID:String
}
{
    _id:ObjectId,
    OtherID:ObjectId
}

What’s the difference?

過去多啦不再A夢
過去多啦不再A夢

reply all(3)
曾經(jīng)蠟筆沒有小新

Please use ObjectId, various operations are more convenient than strings

過去多啦不再A夢

I have made a more comprehensive explanation about ObjectId, you can refer to the article.
If you don’t want to read it all, the answer to this question is in the Q&A section at the end.

洪濤

ObjectId is easier to generate in a sharded environment... and the default _id key is an ObjectId object..

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template