Puas yog MongoDB cov ntaub ntawv faib tawm?
Puas yog MongoDB cov ntaub ntawv faib tawm?
Anonim

Sharding yog ib txoj hauv kev los faib cov ntaub ntawv hla ntau lub tshuab. MongoDB siv sharding los txhawb kev xa tawm nrog cov ntaub ntawv loj heev thiab kev ua haujlwm siab dhau los. Database cov tshuab nrog cov ntaub ntawv loj lossis cov ntawv thov nkag siab tuaj yeem sib tw lub peev xwm ntawm ib tus neeg rau zaub mov.

Ib yam li ntawd, tib neeg nug, MongoDB puas yog cov khoom taw qhia cov ntaub ntawv?

MongoDB yog ib khoom - taw qhia , yooj yim, dynamic, thiab scalable NoSQL database . Nws yog raws li NoSQL cov ntaub ntawv khw qauv. Cov ntaub ntawv khoom tau muab khaws cia raws li cov ntaub ntawv sib cais hauv ib qho kev sau - es tsis txhob khaws cov ntaub ntawv rau hauv kab thiab kab ntawm ib txwm muaj kev sib raug zoo database.

Qhov thib ob, kev siv MongoDB database yog dab tsi? MongoDB yog cov ntaub ntawv-oriented database uas khaws cov ntaub ntawv hauv JSON-zoo li cov ntaub ntawv nrog dynamic schema. Nws txhais tau tias koj tuaj yeem khaws koj cov ntaub ntawv yam tsis muaj kev txhawj xeeb txog cov ntaub ntawv cov qauv xws li cov lej ntawm cov teb lossis hom teb los khaws cov nqi. MongoDB cov ntaub ntawv zoo ib yam li JSON cov khoom.

Ib yam li ntawd, MongoDB puas zoo rau kev lag luam database?

Hauv nws qhov tseem ceeb, MongoDB yog ib daim ntawv database thiab - yuav luag los ntawm lub neej ntawd - cov hom no databases tsis ua raws li ACID, tshwj xeeb tshaj yog thaum nws los txog rau ntau cov ntaub ntawv kev lag luam (ntawm cov ntaub ntawv qib, MongoDB twb txhawb ACID kev lag luam ).

Cov ntaub ntawv khaws cia nyob qhov twg hauv MongoDB?

Los ntawm lub neej ntawd, MongoDB mloog rau kev sib txuas los ntawm cov neeg siv khoom ntawm chaw nres nkoj 27017, thiab khw muag khoom cov ntaub ntawv hauv / cov ntaub ntawv /db directory. Yog koj xav mongod khaws cia cov ntaub ntawv cov ntaub ntawv ntawm txoj kev uas tsis yog / cov ntaub ntawv / db koj tuaj yeem qhia qhov dbPath. Lub dbPath yuav tsum muaj ua ntej koj pib mongod.

Pom zoo: