PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 27th of July, 2013

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:00:22] <dougb> well, it's going to need to return the user then check to see if it's met the requirements for multiple 'placements'. I'd rather query the DB once for the user then somehow searched that object
[00:03:09] <retran> is the subdocument very big
[00:03:20] <retran> anyway.. doesn't matter the size
[00:03:31] <retran> it will search faster if you insert it right back into mongo, in a temp collection
[00:03:36] <retran> and do a query on it
[00:08:41] <dougb> ok. I think this should be faster anyways than what I'm currently doing which is querying over 9 mil transactions to get a count, it's not scaling well at all
[00:09:53] <retran> yes, you need to 'reduce' your query
[00:18:31] <rafaelhbarros> hello
[00:18:45] <rafaelhbarros> I'm having a hard time setting up a 3 node replica set
[00:19:56] <rafaelhbarros> anybody still available for a little help?
[00:36:12] <bcows> bjori, there actually is a package, it's included in "mongodb-dev" package
[00:45:08] <rafaelhbarros> can anyone help me create a 3 node replica set?
[02:08:13] <rafaelhbarros> http://stackoverflow.com/questions/17893357/creating-mongo-3-node-replica-set-on-ec2-problems
[04:20:06] <LoneSoldier728> hey
[04:20:07] <LoneSoldier728> http://pastebin.com/iQ7Nf8v6
[04:20:14] <LoneSoldier728> anyone notice something wrong with the loops
[05:06:23] <bcows> anyone know if /bson/oid.h in the c++ driver is meant to be used/included in client projects? when I try to include it in a dynamically linked library I am getting symbol lookup errors
[06:57:56] <double_p> http://www.techdirt.com/articles/20130726/01200123954/obama-promise-to-protect-whistleblowers-just-disappeared-changegov.shtml -- hah. change we believe in :P
[06:58:38] <double_p> ewps
[11:56:02] <pl2> If I take my database folder and transfer it over to another server(without using mongoexport), would mongo recognize this foreign database?
[12:22:46] <federico3> a
[12:23:07] <Zelest> b
[14:36:51] <bcows> anyone know if /bson/oid.h in the c++ driver is meant to be used/included in client projects? When I try to include it in a dynamically linked library I am getting symbol lookup errors on it's constructor
[16:06:42] <bcows> anyone know how I can convert a hex string to a mongo::OID using the c++ driver ? mongo::OID("<hex>") gives a compilation error ....
[16:31:35] <kbrwn> hi, I haven't ever used IRC for help before but Im having trouble with the Flask/MongoDB tumblelog tutorial.
[16:34:13] <kbrwn> I thought maybe it was a typed error but after c&ping the code directly I get the same errors. like this one: could not connect to localhost:27017: [Errno 61] Connection refused
[16:50:07] <caitp> is it possible to enforce that a collection only contain a single document?
[16:50:09] <caitp> like a singleton basically
[17:13:04] <zoek1> kbrwn: do you have mongod running?
[17:21:41] <kbrwn> hmmm I guess I don't.
[17:22:09] <kbrwn> can I use brew to install on macosx?
[17:27:03] <kbrwn> woo
[17:27:07] <kbrwn> !!!
[17:56:57] <zoek1> yes, you can use brew
[17:57:22] <zoek1> maybe this can help you: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/
[17:58:16] <zoek1> kbrwn: more specific this http://docs.mongodb.org/manual/tutorial/install-mongodb-on-os-x/#using-mongodb-from-homebrew-and-macports
[19:15:44] <bcows> how do you "or" a set of $elemMatch{} .... by default mongo "and"s them
[20:02:38] <zoek1> bcows: db.school.find( { zipcode: 63109 }, { students: { $elemMatch: {$or: [{school: 100},{ school: 102 }] } } })
[20:05:24] <zoek1> the data is in: http://docs.mongodb.org/manual/reference/projection/elemMatch/
[20:07:21] <bcows> thx zoek1 my issue was I was trying find({ school : { $or: [] rather than putting school inside each of the or expressions
[20:13:54] <zoek1> bcows: it tends to happen ;)