MongoDB Query

每条数据格式如下

{
  "_id" : ObjectId("5383298561aa33a422d8603e"),
  "day" : "2014-5-26",
  "ua" : "mozilla/5.0 (linux; u; android 4.2.2; zh-cn; galaxy nexus build/jdq39) applewebkit/537.16 (khtml, like gecko) version/4.0 mobile safari/537.16",
  "version" : 1,
  "browser" : "dolphin-en-kernel",
  "results" : {
    "total" : 9,
    "pass" : 9,
    "fail" : 0,
    "elapsed" : 1238
  },
  "periodInfo" : {
    "base" : {
      "total" : 2,
      "pass" : 2,
      "fail" : 0,
      "elapsed" : 386,
      "suites" : {
        "Javascript execute speed" : 54,
        "DOM selection speed" : 332
      }
    },
    "loading" : {
      "total" : 4,
      "pass" : 4,
      "fail" : 0,
      "elapsed" : 417,
      "suites" : {
        "load iframe speed" : 76,
        "load image speed" : 40,
        "load script speed" : 144,
        "load css speed" : 157
      }
    },
    "cache" : {
      "total" : 2,
      "pass" : 2,
      "fail" : 0,
      "elapsed" : 121,
      "suites" : {
        "loadStorage speed" : 15,
        "appcache speed" : 106
      }
    },
    "rendering" : {
      "total" : 1,
      "pass" : 1,
      "fail" : 0,
      "elapsed" : 240,
      "suites" : {
        "toggle css speed" : 240
      }
    }
  },
  "time" : ISODate("2014-05-26T11:46:13.784Z")
}

查询

完全匹配查询

{
  "results" : {
    "total" : 9,
    "pass" : 9,
    "fail" : 0,
    "elapsed" : 1238
  }
}

 

部分匹配查询

{
  "results.total":9
}
{
  "periodInfo.base.fail" : 0
}

{
  "periodInfo.base.suites.DOM selection speed" : 332
}

 

 

posted @ 2014-06-23 11:18  cart55free99  阅读(169)  评论(0编辑  收藏  举报