PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 5th of April, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:33:18] <proteneer> how do I find an _id that could be one of ['a','b','c']"
[00:38:21] <proteneer> nm
[00:38:25] <proteneer> was my fault
[00:56:11] <Cdogg> is there something im not getting about references? do i just add the id of another collection? like store_id: 1
[03:37:02] <arussel> I'm having this stacktrace: http://pastebin.com/uz85g95Q when starting mongo (installed with yum package from 10gen)
[08:25:51] <Marqin> hello
[08:26:37] <Marqin> i've run repairDatabase() on my master to shrink file size (from 500G -> 25 G). now I have to change my slave to master and run there too repairDatabase? ot it will propagate?
[10:13:23] <asturel> hey, i didnt find @ http://api.mongodb.org/c/current/ howto create collection from c driver, it isnt possible?
[10:15:33] <kali> asturel: collection are created implicitely when you save a document
[10:15:49] <asturel> ?
[10:16:13] <asturel> so i need only insert into it and it auto created?
[10:16:16] <kali> yes
[10:16:20] <asturel> wow
[10:16:21] <kali> unless you want it capped
[10:16:53] <kali> in which case, there is indeed a command: http://docs.mongodb.org/manual/reference/command/create/#dbcmd.create
[10:22:03] <asturel> yeah i found that
[10:22:55] <asturel> hmm, conn.auth() shouldnt throw exception if the auth failed?
[10:22:58] <asturel> or its just a bool
[10:23:10] <kali> exception ? in C ? :P
[10:23:21] <asturel> :D
[10:23:42] <asturel> btw what happens if i use more columns?
[10:23:47] <asturel> in the same collection?
[10:23:56] <asturel> i mean in the next insert
[10:24:00] <kali> man, you should play a bit with mongodb before messing with the driver
[10:24:07] <asturel> hah maybe :D
[10:24:38] <kali> there is no columns in mongodb
[10:24:41] <asturel> fair enought
[10:24:45] <kali> just documents, with arbitrary fields
[10:24:47] <asturel> i used only SQL db-s only
[10:26:12] <asturel> sorry for being noob ./
[10:26:22] <kali> yeah, i had guessed :) seriously, start a mongo shell and play a bit to get the gist of it before whatever you're trying to achieve right now
[10:26:28] <kali> i promise a goor ROI
[10:26:31] <kali> good
[10:27:42] <asturel> well i just wanted to use it for logs, its good for it, isnt it?
[10:28:18] <kali> it can be, yeah
[10:28:53] <asturel> my idea was that i throw log of shit into and see how's it
[10:38:38] <asturel> if i set _autoReconnect it will auto reconnect e.g. on insert if its disconnected?
[10:38:45] <asturel> or it auto reconnects when it disconnects?
[10:38:58] <asturel> http://api.mongodb.org/cxx/current/classmongo_1_1_d_b_client_connection.html
[14:31:07] <asturel> maybe its still, but there isnt a way to not have to type always the database name on insert?
[14:31:44] <asturel> only the collection name
[16:37:37] <asturel> > db.addUser( {user:"asdsadsad", pwd: "dsadsadas", roles: [ "readWrite", "dbAdmin" ] })
[16:37:37] <asturel> Sat Apr 5 18:36:24 uncaught exception: password can't be empty
[16:37:40] <asturel> why do i get this ?
[17:16:33] <mr_spock> hi, i was wondering if i could get some input on setting up mongo in django (via
[17:24:32] <kali> I guess scotty beamed him up
[17:24:46] <fresh2dev> lol
[18:21:01] <W0rmDr1nk> hi
[18:21:11] <W0rmDr1nk> When I do db.x.remove(); - how many entries will this create in oplog ?
[18:21:27] <W0rmDr1nk> 1 or 1 per document that is in the collection ?
[19:24:52] <kali> WormDrink: oplog format is to be considered as an internal, so the documentation is quite sparse. better try it :)
[19:45:44] <Marqin> i've run repairDatabase() on my master to shrink file size (from 500G -> 25 G). now I have to change my slave to master and run there too repairDatabase? ot it will propagate?
[20:23:05] <paulkon> what would be the performance difference between field: { $in: [singleElement] } and field: singleElement?
[20:28:04] <kali> paulkon: negligible
[20:28:10] <kali> Marqin: it will not propagate
[20:30:56] <paulkon> great. only purpose for the former is to wrap single/multiple value queries
[20:31:04] <paulkon> I guess I'll keep it wrapped
[20:44:21] <asturel> anyone can help what im doing wrong?
[20:44:31] <asturel> im trying add replica via rs.add.. and i get "errmsg" : "exception: set name does not match the set name host
[20:44:38] <asturel> same on primary same on secondary
[20:46:33] <asturel> i even set the slave=true, source=masteraddr
[23:06:33] <alexi5> hello