mongodb-ruby
Ruby group hashes by value of key
I have an array, which is output by a map/reduce method performed by MongoDB, it looks something like this:[详细]
2023-04-11 06:23 分类:问答Rails 3 + MongoDB: How to do a nested query?
I am using Ruby Mongo Driver. @surname = coll2.find(\"name\" => {\"surname\" => \"testing\"}) Shouldn\'t this be working? I get no results.[详细]
2023-03-05 18:52 分类:问答Queries on embedded documents with Mongoid/MongoDB (Rails)
I\'m trying to figure out what the performance is with Mongoid when doing queries on embedded documents. I\'m quite new to Mongoid and MongoDB, so if you spot anything that you think is bad practice,[详细]
2023-02-14 14:52 分类:问答Can you create multiple indexes on a single field in Mongo? What does that look like?
I\'m trying to create a compound key as my \"_id\" field, which takes in some geo information as well as other attributes.It looks something like:[详细]
2023-02-11 12:16 分类:问答Document updates using mongo-ruby-driver?
Assuming the following: irb> x irb> => {\"_id\"=> 123456, \"welcome\"=>\"Hi!\", \"welcome2\" => \"Enjoy your stay!\"}[详细]
2023-02-06 09:10 分类:问答What's the best state machine gem to mongoid? [closed]
As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references,or expertise, but this question will likely solicit debate, a[详细]
2023-02-04 01:32 分类:问答Rails code generated with ORM mangomapper throws NoMethodError (undefined method `each' for "4d2aeaea4403baa84a000005":String)
I am absolutely totally news to Rails and to MongoDB. I have been following tutorials from a good book and create my first Rails app with a light Twitter copy. Everything went fine and smooth.[详细]
2023-02-03 22:39 分类:问答MongoDb capped collection
can u help me pls as i surfed around but didn\'t find any information. I\'m working with mongoDB capped collection using Ruby. I need to update documents according to the id i retrieve from the query,[详细]
2023-02-03 05:05 分类:问答MongoDB - too much data for sort() with no index error
I am using MongoDB 1.6.3, to store a big collection (300k+ records). I added a composite index. db[\'collection_name\'].getIndexes()[详细]
2023-01-29 11:10 分类:问答输卵管造影能看到肌瘤吗?
风叶RLBY 2022-04-20 04:00 输卵管造影不能看出子宫肌瘤。输卵管造影是检测输卵管是不是通畅,查看输卵管的形状和堵塞部开发者_运维百科位,了解宫腔的形状,判定是不是有子宫畸形和子宫畸形的典型,判定是否有[详细]
2022-12-24 21:01 分类:问答