2012年1月31日

mongodb指南(翻译)(二十二) - developer zone - 索引(六)多键

摘要: Mongodb提供了一个有趣的“多键”特性,可以自动对对象的数组值进行索引。标签就是个好例子。假定你有一篇包含了许多分类标签的文章:$ dbshell> db.articles.save( { name: "Warm Weather", author: "Steve",tags: ['weather', 'hot', 'record', 'april'] } )> db.articles.find(){"name" : "Warm Weather&q 阅读全文

posted @ 2012-01-31 11:44 xinghebuluo 阅读(905) 评论(0) 推荐(0)

导航