mongodb
Mongodb/Mongoid query slowness on an indexed attribute
I have a mongoid model like this: class Link include Mongoid::Document include Mongoid::Timestamps field :url, type: String[详细]
2023-04-12 07:06 分类:问答Why $pull operator doesn't work on MongoDB when using empty criteria?
I have nodes like this: [_id] => MongoId Object ( [$id] => 4e90cb3cd68417740c000017 ) [label] => mystery[详细]
2023-04-12 05:56 分类:问答Store TimeZone with Mongoid
I have the following Mongoid model... class Eve开发者_运维百科nt include Mongoid::Document include Mongoid::Timestamps::Created[详细]
2023-04-12 05:46 分类:问答Get ID of newly created document
I am working with MongoDB and Codeignite开发者_如何学Cr (and Alex Bilbies MongoDB library) and I am just wondering. Is there a way to get the ID of the post I create below directly after?[详细]
2023-04-12 05:11 分类:问答Mongo class not found in Heroku PHP
I am using Heroku PHP, and has added the Mongo开发者_运维百科HQ addon. But it gives an error \"class Mongo not found\" at the line $m = new Mongo();[详细]
2023-04-12 05:00 分类:问答Geospatial Index for inner structure
I have a collections names locations with data structures like: { \"_id\" : ObjectId(\"4e95263f1783ae8487be26d4\"),[详细]
2023-04-12 04:50 分类:问答admin? doesn't work with Mongo Mapper
I was trying to play with MongoDb and using the Rails Tutorial to create users.I\'m using the Mongo_mapper gem.I have that all set up but I\'m at the point where it seems that ActiveRecord functions/m[详细]
2023-04-12 04:35 分类:问答In the MongoDB java driver, how do I pass a key function ('keyf') to a 'group' command
I would like to be 开发者_开发百科able to use the mongodb group command with the \'keyf\' parameter through the java driver. Has anyone been successful with this?You have to use the deprecated method[详细]
2023-04-12 04:17 分类:问答Add new field to every document in a MongoDB collection
How can I add a new field to every document in an existent coll开发者_开发知识库ection? I know how to update an existing document\'s field but not how to add a new field to every document in a collec[详细]
2023-04-12 04:12 分类:问答MongoDB select where in array of _id?
is possible in mongo db to select collection\'s documents like in SQL : SELECT * FROM collection WHERE _id IN (1,2,3,4);[详细]
2023-04-12 03:54 分类:问答