mongoid
Updating attributes on several indexes in array. Using mongoid in Rails 3
Inside my test database, I would like to trigger a \"new_item\" flag for testing.The method already works in my tests.So now I am setting the created_at and published_at fields of all records to 1 mon[详细]
2023-04-13 06:02 分类:问答MongoDB: Modeling likes, mutual friends etc
I\'m building a streaming music service that will have features like: Follow users Like songs Create and manage playlists[详细]
2023-04-13 04:43 分类:问答MongoDB: getting ObjectId of last inserted document with multiple, concurrent writers?
Consider the following scenario wi开发者_运维百科th MongoDB: Three writers (A,B,C) insert a document into the same collection.[详细]
2023-04-12 15:43 分类:问答Rails 3.1/Mongoid - How to find model by name rather than id in routes
Edit: i am using Mongoid/MongoDB for my database, meaning I don\'t get the normal Active Record tools I think.[详细]
2023-04-12 13:32 分类:问答How do I return only fields that are needed in Mongoid?
How do 开发者_StackOverflow中文版I perform a query that doesn\'t return the entire document, but only fields that I have specified?From the horse\'s mouth:[详细]
2023-04-12 07:43 分类:问答Why does limit still return the entire document set in Mongoid?
This seems to be causing my queries to be slow, and I\'m 开发者_运维百科confused as to why it is returning all entries of the document.[详细]
2023-04-12 07:41 分类:问答Rails3/Mongoid - Basic db:seed with embedded documents
I\'m using MongoID with rails 3.1. and I would like to seed my database (both in dev and production). I have a Pages model with Feeds embedded. What\'s the best way for me to seed the embedded feeds f[详细]
2023-04-12 07:26 分类:问答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 分类:问答Get data from two collection with Rails 3.1 and Mongoid
I have two models called Post and User, Post belongs_to user and U开发者_如何学Cser has_many posts. When I list all posts I also want the user username and email to be included. I a relational databas[详细]
2023-04-12 06:24 分类:问答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 分类:问答