Questions tagged [mongodb-ruby]

Officially supported Ruby driver for MongoDB.

The MongoDB Ruby driver is the officially supported Ruby driver for MongoDB. It’s written in pure Ruby and is optimized for simplicity. It can be used on its own, but it also serves as the basis of several object mapping libraries, such as Mongoid.

Links

Related tags

50 questions
0
votes
1 answer

Mongo Group function call in Ruby

I have a mongodb collection like this {"assigneeId" => 1000, "status" => 3, "starttime" => "2014 Feb 25", "numofdays => 6} {"assigneeId" => 1000, "status" => 2, "starttime" => "2014 Jan 10", "numofdays => 6} {"assigneeId" => 1000, "status" => 3,…
Sivaram Kannan
  • 121
  • 1
  • 12
0
votes
0 answers

How can i update the ids field?

Unfortunately, I cannot use positional operators since there is a bug that doesn't allow deeper than 1 embedded document: https://jira.mongodb.org/browse/SERVER-831 So this wont work (using the Mongodb Ruby driver): stat_profile.update({…
Christian Fazzini
  • 19,613
  • 21
  • 110
  • 215
0
votes
1 answer

MongoDB on collection.insert and data-size dilemma

I'm working on this project where I have to perform mass insertion on MongoDB database I understand that MongoDB is a document database and there is limit on size of each document as seen here Now for mass insertion code look like this…
Ratatouille
  • 1,372
  • 5
  • 23
  • 50
0
votes
1 answer

Rails mongoDB single connection required

I am using rails application, my rails applications logs are should be stroed in mongoDB. I am logging each and every controller's method call and its params its date of call etc. Here is my code in my application controller, to log the…
palani
  • 4,661
  • 8
  • 31
  • 36
-1
votes
1 answer

Mongodb query with multiple $nin

I took this example: db.inventory.update( { tags: { $nin: [ "appliances", "school" ] } }, { $set: { sale: false } } ) form the mongodb.org website. Whenever I try to use $nin multiple times, find_and_modify fails. Whan I want to…
meso_2600
  • 1,940
  • 5
  • 25
  • 50
1 2 3
4