mongodb-php

    12热度

    2回答

    第一次地图/减少用户在这里,并使用MongoDB。我有很多页面访问数据,我想通过使用Map/Reduce来了解一些情况。下面基本上是我想要做的,但作为一个初学者Map/Reduce,我认为这超出了我的知识! 浏览所有在过去30天内访问的页面,以及external = true的位置。 然后为每个页面,找到所有访问 集团转诊位置 所有访问对于每个推荐的位置,计算出许多那么如何去拜访它具有一定的“类型

    8热度

    1回答

    调用未定义的方法的MongoDB ::插入()我运行这段代码: $db = new Mongo("mongodb://user:[email protected]:27081/dbname"); $collection = $db->foobar; $collection->insert($content); 我想通过只创建一个随机采集测试mongohq。 我得到这个错误

    0热度

    2回答

    我似乎有使用光标,我试着将数据从一个MongoDB中的一些麻烦光标访问MongoDB的值。这里是我的简单的数据结构的截图: data structure screenshot http://droplr.com/IpcH+ 我尝试使用以下命令: $collection_name = "users"; $collection = $this->mongo->db->$collection_name

    8热度

    5回答

    我正在使用Mongo PHP扩展。 我的数据是这样的: users { "_id": "4ca30369fd0e910ecc000006", "login": "user11", "pass": "example_pass", "date": "2010-09-29" }, { "_id": "4ca30373fd0e910ecc000007

    3热度

    2回答

    我们使用MongoDB在浏览量上收集日志。 $collection_name = "logs.".date('Y').".".date('m').".".date('d'); $collection = $this->Mongo->$collection_name; $collection->insert($pageview); 上面的代码为每一天创建一个新的集合。 我希望能够在创建上述集

    3热度

    2回答

    我试图从我的mongodb集合的'type'字段中获取唯一值的列表。 { "_id" : ..., "type" : "report", "tasks" : ... } { "_id" : ..., "type" : "research", "tasks" : ... } { "_id" : ...,

    3热度

    1回答

    存储JavaScript函数MongoDB中我已经存储在db.system.js function SomeFunc(o) { x = db.Collection; while(1) { var c = x.find({},{_id:1}).sort({_id:-1}).limit(1); var i = c.hasNext() ? c.next()._