mongodb-php
Getting collection names in mongodb php
Here\'s my db: $db = new Mongo(\"mongodb://u:pw@server.com:37068/dbname\")开发者_StackOverflow中文版;[详细]
2023-01-27 09:17 分类:问答Calling stored JavaScript function in MongoDB from PHP
I have this function stored in db.system.js function SomeFunc(o) { x = db.Collection; while( 1 ) { var c = x.find({},{_id:1}).sort({_id:-1}).limit(1);[详细]
2023-01-20 05:12 分类:问答Creating indexes on new collections in MongoDB + PHP
We use MongoDB to collect logs on pageviews. $collection_name = \"log开发者_运维问答s.\".date(\'Y\').\".\".date(\'m\').\".\".date(\'d\');[详细]
2023-01-18 13:16 分类:问答mongodb php - how to do "INNER JOIN"-like query
I\'m using the Mongo PHP extension. My data looks like: users { \"_id\": \"4ca30369fd0e910ecc000006\", \"login\": \"user11\",[详细]
2023-01-18 00:32 分类:问答Can't access values in MongoDB with cursor using PHP
I seem to 开发者_运维百科be having some trouble using the cursor as I try to pull data out of a MongoDB. Here is a screenshot of my simple data structure:[详细]
2023-01-17 17:46 分类:问答php mongodb : Call to undefined method MongoDB::insert() in db.php
I\'m running this code: $db = new Mongo(\"mongodb://user:pw@flame.mongohq.com:27081/dbname\"); $collection = $db->foobar;[详细]
2023-01-16 23:42 分类:问答Handling sessions without ACID database?
I am thinking about using a noSQL (mongoDB) paired with memcached to store ses开发者_运维问答sions with in my webapp. The idea is that upon each page load, the user data is compared to the data in the[详细]
2023-01-15 21:31 分类:问答Django: Filtering on a ("latitude, longitude") field
I am storing the the latitude and longitude as a charfield like (\"latitude, longitude\"). I prefer to keep it this way.[详细]
2022-12-22 13:42 分类:问答