[11:26:29] <delkin_> Is there a way to tell mongo to keep a collection ordered by date, to avoid doing it every time I find() the elements? Does this make sense?
[11:28:41] <kali> delkin_: hmmm... what do you mean "doing it every time" ? you're sorting in your code ?
[12:35:47] <lior> hey so I am trying to figure out my database design for friends recent activities... what is the best way to do it scaling wise?
[13:33:03] <ron> lior: shalom. that question is a bit too vague.
[15:34:10] <tradeigniter> how would I go about making this in mongo
[15:34:27] <tradeigniter> would that just be users collection
[15:58:24] <lior> hey ron I realized... basically I am trying to figure out how to design my table for showing a user's followers recent activity
[16:00:12] <lior> I was thinking of adding a collection with each action and userid and i already have a collection with a user's followers, so I can query the actions collection with the db.posts.find({ userId: { $in: [12, 24, 56, …] }, date: { $gt: x, $lt: y } }).sort({ date: -1 }).limit(-100)
[16:00:55] <lior> is that good enough or would it pose a problem in the future for scaling/ is there a more efficient way?
[20:05:03] <[twisti]> hey, i dont really understand how these nosql things work - can you still effectively search the storage, like in sql with columns and indexes ? or is that not something youd do with something like mongodb ?
[20:08:36] <ron> [twisti]: nosql dbs are just... databases. and like everything out there, they have benefits and drawbacks in different fields.
[20:09:39] <ron> [twisti]: the only general assertion you can make regarding nosql solutions is that they don't use sql to query them.. and even that assertion isn't 100% correct. you have to look at each nosql solution separately.
[20:25:17] <bufferloss> how can I send a $where query to mongo? e.g. I want to select all records where the date_time field is a multiple of 5 minutes (not sure if this is node.js specific or mongo specific as I'm using the node.js native driver for mongo)
[23:21:01] <LoneSoldier728> hey so creating a feed system for users who have followers... wanted to get your opinion on the design... http://pastebin.com/GPJm46bq
[23:21:49] <LoneSoldier728> Basically creating 2 collections, sharded based on the owner, followers... and I am using this example pretty much from mongodb (3rd one) http://blog.mongodb.org/post/65612078649/schema-design-for-social-inboxes-in-mongodb