MongoDB should I create my own ID key column? -
in mongodb there seems default _id column, stores object id. should making own auto-incrementing id column reference across collections foreign keys?
the default _id column primary key of document. , stores an objectid, can contain else, it's you.
there reason why mongo developers use default primary key (it's more performant if multiple processes insert simultaneously) , if don't understand reasons better not experiment else.
it foreign key.
Comments
Post a Comment