moped Questions
3
I have the following query db in mongodb that returns exactly what I need:
db.collection.find({field1: 2801394}, {name: 1, field2: 1, _id: 1, "field3.2801394": 1})
Note field 3 is a hash, and t...
2
Solved
When I use mongo-ruby-driver and I insert new document it returns generated '_id':
db = MongoClient.new('127.0.0.1', '27017').db('ruby-mongo-examples')
id = db['test'].insert({name: 'example'})
#...
1
I recently upgraded from mongoid 2.0.2 to mongoid 3 with rails 3.2.12 and ruby 1.9.3 .
Following issue comes when save command excutes => @new_node.save
Moped::Errors::OperationFailure (The ...
Merril asked 12/3, 2013 at 14:13
1
Solved
This issue was said to be resolved the latest version of Moped but still happens to me.
I have a rails 4.2 app with Mongoid, created a user for a MongoDB DB with readWrite and dbOwner roles, and se...
Cogan asked 26/4, 2015 at 9:22
3
Solved
I'm using Mongoid (v3) to access MongoDB, and want to perform this action:
db.sessionlogs.update(
{sessionid: '12345'}, /* selection criteria */
{'$push':{rows: "new set of data"}}, /* modifica...
1
Solved
I am seeing a ton of jobs failing when running Sidekiq that are all related to connectivity issues with my Mongo database. I'm stress testing the machine with lots of load, so I queued over 18,000 ...
Isleen asked 26/12, 2013 at 19:39
1
I have a Rails 3 app with MongoID 3 deployed successfully to Heroku (using MongoHQ) -- but then something happened (cannot pinpoint what exactly it was) and the build started crashing on Heroku.
S...
Finally asked 31/7, 2012 at 8:20
1
© 2022 - 2024 — McMap. All rights reserved.