04 2014 档案
摘要:Comparison Query OperatorsName Description$gt Matches values that are greater than the value specified in the query.$gte Matches values that are equal...
阅读全文
摘要:$in: { field: { $in: [, , ... ] } } db.inventory.find( { qty: { $in: [ 5, 15 ] } } )$or: { $or: [ { }, { }, ... , { } ] } db.inventory.find( { $or...
阅读全文
摘要:尽可能把一次展示所需的必要数据都存储到一起,典型的空间换时间。现在的科技条件下空间的价格非常低廉,很划算。优点: 1. 在精心的设计下查询性能巨好。 2. 数据结构弹性十足,特别适合快速发展中的产品。注意:1、Mongodb不支持事务使用方法:http://www.cnblogs.com/xumin...
阅读全文