[17:11:33] <\monster\> Hi guys, I have no experience with mongo but need to grab an existing site that uses it and replicate on dev server. Can I simply copy the data directory from the live, linux, server while it's running without affecting anything?
[17:15:40] <StephenLynx> if the file doesn`t change during the copy, probably.
[17:15:50] <StephenLynx> using mongodump would be the safest way to do that, thougj.
[17:15:55] <StephenLynx> how large is the database?
[17:20:50] <bla> This conversion: "loc:[0.1, 0.2] --> { type: "Point", coordinates: [ 0.1, 0.2]}" - can't be done with update and I can use forEach loop - can someone acknowledge?
[17:25:51] <\monster\> I see .0 and .1 files ..they are 128mb 64mb ..pretty small
[17:28:31] <\monster\> should be able to copy this pretty much instantly
[18:07:28] <roonie> i have a collection of user ids and a collection of objects each of which has an array of user id references. I need to find all the objects in that collection that have any value from the user id array in its array of user id references
[18:08:14] <roonie> I tried this, but it's returning an empty array: http://jsfiddle.net/er75ekg3/
[18:08:43] <roonie> and i actually know why it's returning in empty array (authorizedUsers is an incorrect property parameter for that query)
[21:20:40] <steven322> hey guys, do i need to convert JSON documents to BSON before using mongoimport? complete noob here, my json document is ~26 megabytes
[21:23:37] <cheeser> mongoimport reads json not bson
[21:24:11] <steven322> oh ok, does it then store it as bson after reading it?
[21:26:36] <cheeser> everything *in* mongo is bson, yes.
[21:29:03] <steven322> thanks. the data im working with is geospatial data which is why it is so large. are there any standard practices to handle this like breaking up the file?
[22:36:11] <bilb_ono> cheeser: oh whoops. ok its null
[22:36:34] <bilb_ono> when I found that document by its id, I can see that the returned from the shell has “geo”: null
[22:36:58] <bilb_ono> so does that mean I should do an $exists instead?
[22:37:14] <erebel55> I'm not sure if this is the right channel but I'm using connect-mongo to store sessions. But how would I go about using those sessions to relogin automatically?
[22:40:51] <cheeser> bilb_ono: null still counts as existing, i believe
[22:41:30] <bilb_ono> cheeser: so I want “$ne”: null