mongoDB

mongoDB, redis 2015. 10. 13. 22:14

Functionality vs scalability&performance :

  -mongoDB achievs both. But missing some functionality because of scalibility&performance.


Not exists in mongoDB:

 -Join, transaction., schema, SQL


Exists in mongoDB:

  Index, secondary Index



Command:

  db

  show tables

  db.things.find ().pretty()

  db.things.insert (..json..)  or .save(json)


SchemaLess example:

> db.user.insert( {name:"kim"})

> db.user.insert( {name:"lee", age:11} )

> var j = db.user.findOne( {name:"kim"} )

> j.age = 11

> db.user.save(j)



Posted by yongary
,