mongodb
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 分类:问答Two "id" fields in one MongoDB collection with Rails 3?
I\'ve got a Rails 3.0.9 project using the latest version of MongoDB and Mongoid 2.2. I imported a CSV with an \"id\" field into a MongoDB collection named College, resulting in a collection like so:[详细]
2023-04-12 03:50 分类:问答MONGODB mongoose update embedded document in node.js
I have an embedded image document in my main document and I am able to update it as follows. Everytime it updates, it just overrides the existing image and does not add it to the existing images.. I t[详细]
2023-04-12 02:13 分类:问答MongoDB - anonymizing 600k records
I am trying to anonymize a large data set of about 600k records (removing sensitive information like email, etc.) so that it can be used for some perfo开发者_如何学Crmance tests.[详细]
2023-04-12 02:12 分类:问答in a document of MongoDB, i have a key/value such that value is an association array (inserted using php); how can iterate
in a docum开发者_如何学Goent of MongoDB, i have a key/value such that value is an association array (inserted using php); how can iterate throuth this array[详细]
2023-04-12 02:08 分类:问答Mongodb: Querying array elements within a document
I have a collection I\'d like to query as follows: return all documents up to 2 comments (e.g. a slice, either 0, 1, or 2 comments)[详细]
2023-04-12 02:03 分类:问答Multiple search in mongodb with morphia
I\'ve two classes: User and Project. The project class have ONE user (the owner of project). In search method, it returns a list of user after a method, and with this list of users,[详细]
2023-04-12 00:53 分类:问答How to keep only a defined subset of a collection
I would like to keep only a defined subset of a collection. I don\'t find any relevant information about it. It\'s hard to explain, so I put an exemple:[详细]
2023-04-12 00:14 分类:问答