[07:30:56] <windows7_> as well as bunging the roles
[07:33:24] <windows7_> how can I add an email to a user?
[07:33:46] <windows7_> i'm getting a error saying: couldn't add user: "email" is not a valid argument to createUser at src/mongo/shell/db.js:1004
[07:35:24] <joannac> windows7_: um, mongodb users don't have an email field
[07:36:27] <joannac> windows7_: if you want to add random other fields, use the customData field http://docs.mongodb.org/manual/reference/method/db.createUser/
[07:42:21] <windows7_> can you shed some light on this statement joannac db.user.update({'email': 'guoqiao@gmail.com'}, {'$set': {'date_slug': '131126-4' }})
[07:43:43] <windows7_> basically that statement is in the setup instructions
[08:18:07] <luc4> Hello! I'm using mongo on a web service running on openshift. It seems that after a few days of uptime I get something like this: http://pastebin.com/gzhDQjqH. Any idea why this might happen? It seems it fails to connect but... why?
[08:21:58] <arussel> luc4: what does mongo log says ?
[08:27:21] <luc4> arussel: mmh... not sure if I have its log somewhere...
[08:41:08] <sabrehagen> would really appreciate it if somebody could provide some input on my question here: http://stackoverflow.com/questions/30229872/node-js-mongodb-connection-in-master-or-forked-thread
[11:45:39] <MachineMan> I’ve got some problems with mongoexport. Trying to export as .csv but my non-_id columns are empty in the .csv. I’m not getting any errors from the commandline though
[13:36:19] <deathanchor> the cursor handler should be doing the work, be it a driver, or a javascript function you use in the shell
[15:09:12] <aendrew> Howdy folks! So, I have an array of objects in my document, “document.officers”, each child of which has an element, “name”. I’m wanting to find all documents that match /HERPA.*?DERPA/i, so my query’s like db.documents.find({‘officers.name’: /HERPA.*?DERPA/i}) — but this returns documents where either “HERPA” or “DERPA” is in one of the names, i.e, “officer.name: ‘HERPA LLAMA’” and “officer.name: ‘DUCK DERPA’
[15:09:13] <aendrew> returns a match, where I only want matches like “HERPA SOMETHING IN THE MIDDLE HERE DERPA”. Any thoughts?
[15:09:50] <aendrew> *officers.name, rather, in the above example.
[15:10:26] <StephenLynx> I can't read half of the characters
[16:02:02] <StephenLynx> so yeah, don't go pasting your e-mail around.
[16:02:23] <StephenLynx> if you are that careless around the internet to the point people can find out your home address.
[16:02:43] <windows7_> i would tell you that i believe in the common decency of people in irc
[16:02:49] <windows7_> but i dont want you to prove me wrong :P
[16:03:10] <StephenLynx> I don't find it dignified to fuck up random people.
[16:03:22] <StephenLynx> but again, most people don't care about dignity these days.
[16:03:33] <cheeser> i gave up on that fantasy years ago. http://bit.ly/1dfuKIs
[17:54:23] <shlant> hi all. I am trying to set up a replica set with MMS. It shows on the Processes tab, but has no state. I also deployed users but when I actually check on the host, they don't exist…
[17:54:53] <shlant> I initially set them up with automation agents
[18:29:34] <bfrizzle> hi all, when mongod is configured to run in SSL mode, is it /fixed/ into mutual verification mode? or is there a way to configure mongod to require ssl connections without also requiring client certificates?
[18:30:14] <proteneer> there may be clock skew etc between the server that my DB is hosted on and the actual webserver itself
[18:31:00] <cheeser> use ntp and don't worry about it?
[18:32:24] <StephenLynx> proteneer I always use UCT
[19:15:18] <flicknick> we had an unclean shutdown and is trying a repair, but it segfaults straight away. I've searched through the docs, but am unable to figure out how to deal with this. Ideas appreciated.
[19:57:03] <dfosl> After every insert, update, or delete operation, MongoDB must update every index associated with the collection in addition to the data itself.
[19:57:23] <dfosl> it means that index is updated even if i update un-indexed field?
[19:57:51] <cheeser> if the document has to be moved on disk, sure.
[20:00:00] <dfosl> you wrote when it needs to be moved on disk, if i update integer field from 10 to 2000 then it will not make whole structure larger which means no moving ?
[20:00:09] <dfosl> or you talking about something else ?
[20:00:43] <cheeser> changing a number field can not make the document larger
[20:00:58] <dfosl> because i am building write heavy application, but it's write heavy only on un-indexed fields, but i have milions of elements inside
[20:01:22] <dfosl> and docs are saying that even if i update only unindexed fields, db will rebuild index
[20:02:49] <dfosl> because it clearly states every associated with the collection
[20:03:30] <dfosl> it didn't make sense for me, that's why i asked here
[20:06:02] <dfosl> cheeser: sorry but if you would write that only for insert operations that would be true, but in documentation it's true also for update operations
[20:18:49] <dfosl> last question, without using indexes, on write heavy collection, best way to retrieve list of logs for example for specific user is just to make document for every user and just add logs to field which is array?
[20:19:27] <dfosl> then just retrieve whole array for specific user, which makes less traversal instead of just adding collection with all the logs
[20:20:28] <dfosl> any performance penalties to wathc out in this design ?
[21:55:45] <SpeakerToMeat> Sorry to ask this here, but I really trust the architectural view of mongoers.... Would you say a database of movies (cinema), would be more fit to a graph database than a document one, to conserve deduplication/normalization of linked items (like director, to movie(s)) rather than trying to implement rdbms like relationships between documents?
[22:01:11] <blizzow> Does anyone here know if the reactive mongo driver tries to access the arbiters of a replica set?
[22:17:27] <cheeser> blizzow: why would it? arbiters are non-data bearing members. there's nothing of interest there to an application
[22:20:26] <blizzow> cheeser: I'm not sure, but my application is trying to bang on my arbiter server. But the arbiter is not in any of my application config Uri.
[22:20:36] <joannac> cheeser: to keep an eye on the whole set.
[22:21:01] <joannac> blizzow: that sounds like a bug. one or 2 connections to keep an eye on stuff, sure. lots of connections - bad
[22:21:04] <cheeser> joannac: ... maybe. but an arbiter can never be a primary
[22:21:14] <joannac> cheeser: true, but we still do it :)
[22:21:39] <cheeser> i'm not sure a driver will even try to connect to it...
[22:43:15] <cheeser> secondaries can lag so using them for backups is usually a bad idea.
[22:56:33] <itisit> how to clean all data of mongodb (db, user, replicaset, sharding, etc)?
[23:00:37] <dreamdust> If I see huge spikes in query time for finds during periods of very low throughput… like randomly a find will take 14 secs for a collection with less than 500k docs. Indexes are in memory as well.
[23:00:55] <dreamdust> What would be a good place to start debugging? Does this indicate some kind of collection lock
[23:08:48] <itisit> how to clean all data of mongodb (db, user, replicaset, sharding, etc)? can I just remove all data from dbpath rather than run commands to drop database etc?
[23:23:17] <joannac> itisit: sure, shut down any mongod / mongos processes,a nd remove all the files
[23:23:28] <joannac> that means ALL your data is gone