[00:14:54] <nicksloan> I'm wondering how people have stored weekly event data in mongo. I need to store a schedule or weekly, recurring events. like every Tuesday and Thursday at 2pm.
[01:02:59] <dingo2> nicksloan: just same as u would in any code
[03:53:55] <Shadow_S> if my database schema is a very large one. let's say "cout" is an attribute of "function" which is an attribute of "language", would finding "cout" be slower than if it was in it's own datastructure?
[04:50:06] <sagarchalise> hi guys, is there a way to copy collections from one db to another within mongodb and keep them synced
[05:26:50] <sagarchalise> hi is there way within mongodb to keep two databases synced with each other
[05:43:51] <shaz> Hey - I was hoping someone could point me in the right direction on using an $elemMatch in a projection on the mongo-ruby-driver; the db['collection'].find() only seems to like ":fields => ['a','b']" as the second var
[09:27:45] <Guest_1448> in mongo, if I do collection.remove({x:y}); collection.insert([...]) - is the insert guaranteed to run after the remove call?
[12:09:55] <xcat> I have a property collection like {foo: {'0': { baz: 'bat' } }, {'1': { baz: 'bar' } }, {'2': { another: 'document' } } } How do I find foo documents which have a baz property?
[12:10:31] <ron> umm.. is that supposed to be a map?
[12:13:46] <xcat> It was supposed to be an array but PHP saved it with numbered indexes
[14:57:14] <scoutz> i'm trying to setup replication and was wondering: I setup replication on mongod on my localhost1 and have a replica set on localhost2, for failover to work i should connect to a mongos right?
[15:10:04] <oskie> scoutz: no need for mongos. but you will need a third member (e.g. arbiter) for failover.
[15:52:13] <aline> How can I get for a simple dataset {ID:'A', val: 1 ; ID:'B', val: 2 ; ID:'C', val:1} all ID's that match a single criterion val = 1 ?
[15:55:12] <ron> that's no a valid JSON no matter how you look at it.
[15:57:21] <NodeX> or .. [{ 'ID':1, 'val' : 1},{'ID','val':2}]
[15:57:30] <NodeX> or .. [{ 'ID':1, 'val' : 1},{'ID':2,'val':2}]
[16:00:04] <aline> yes ok sorry, and I need the data distinct but I think I got it
[16:10:53] <kali> bean: your proposal looks nice, but will not work for aline's query. usually the NodeX is the way to go: keys in mongodb are keywords, not data
[16:11:28] <aline> I got it and asked to soon, thank you
[16:18:39] <bean> kali: you're right, hadn't had my 2nd cup of coffee yet
[17:56:18] <zastern> is rs.conf() meant to list the priority of each member of a replica set? I've tried changing priority as per this documentation - http://docs.mongodb.org/manual/administration/replica-sets/#replica-set-node-priority - but I can't find any way to check if it worked.
[17:59:53] <zastern> hmm, it's working now, i must have done something wrong
[19:06:51] <zastern> Can I have say, mongo 2.2.1 in a replica set with 2.2.2?
[19:25:16] <MacWinner> Hi, I'm trying to make a decision about using MongoDB.. Is it a good usecase for using it as a User store? I'm coming from a MySQL background.. i'm an old dog tyring to learn new tricks
[19:29:42] <MacWinner> nope.. I think I have a better understanding of where it's used now
[19:30:19] <MacWinner> I can use it for storing comments and events for the users.. but that actually user store and relations between users, I'll leave in mysql
[19:30:31] <kali> MacWinner: i use it as a general purpose DB, replacing SQL, but i have to deal by hand with the few scenario where i need multi-docs "transactions"
[19:31:17] <kali> but i would not implement a store (as in the one with a cart) with it
[19:59:00] <Thomas___> I'm having some problems with a normal $push. I've done $push-es before but this one is acting up, perhaps I'm forgetting something. db.orders.update( { id: "153641332" }, { $push: { "meta": "cat" } } );
[20:04:56] <Thomas___> This document is being really stubborn for some reason.
[22:46:08] <lordblackfox> i have begun to play with mongodb in c++; I was wondering why you're not using standard containers and having so much classes to work with binary tree of objects
[22:47:17] <lordblackfox> I have made something like that some times ago, for a JSON parser; I had something a lot simplest
[23:25:08] <leitz> Anyone familar with the 10Gen mongodb server package init script? I tried to start mongod after a clean install and the script doesn't return to the command line.
[23:27:05] <leitz> Well, okay, so tried it again and it returned a failure. Log reading time.
[23:28:21] <w5pm> hey guys, i need to write a server to handle payments? is mongodb a good choice for tracking user purchases or should I go with a more traditional sql solution?