[05:52:26] <dharmaturtle> I have a collection of names and a collection of text. I'm trying to count the occurances of the names in the text. What I have to do is run a script that prints the names to the console, copy that, and then literally paste it into the "map" function in my map reduce script. Is there a better way? http://pastie.org/private/9futpyyyfrom6733w6orhq#
[05:53:05] <dharmaturtle> I can't connect to another collection inside of map, and it doesn't recognize global variables. I don't know how else to send the Name array to the map function.
[06:18:34] <chovy> can someone tell me if its possible to search for proximity to a Gps coordinate using geoNear? Like if i have gps coordinates for a location, and I want to find all items that are within a 20 mile radius of it.
[06:47:53] <joannac> you want maxDistance: 20, and potentially distanceMultiplier:X, and/or spherical:true
[06:48:01] <joannac> depending on how you have your coordinates
[07:11:05] <svm_invictvs> Is db.dropDatabase() a particulary time-consuming call?
[07:14:59] <dweeb> I just restored my server from a snapshot and now all my files in the dbpath is 4kb. Is all my data lost?
[07:18:36] <joannac> svm_invictvs: depends how big the db is
[07:19:09] <joannac> dweeb: weren't you here earlier today?
[07:19:19] <joannac> dweeb: step by step, what did you do?
[07:20:37] <dweeb> joannac: yeah but I waited for my server provider to restore my server from a snapshot and they just did that. And I check the dbpath folder and all the files are 4kb. So I donno what to do
[07:25:00] <chovy> joannac: is "loc" the gps coordinates? for the seed data in your example?
[07:26:52] <dweeb> joannac: Im not sure, but it takes a copy of the filesystem
[07:28:17] <joannac> chovy: the distance is in the results. To specify a radius you want to add maxDistance:20 to the command
[07:28:29] <dweeb> joannac: My server has been running for 300 days. Now they restored it from a snapshot and all data is lost. Is that even possible? Mongodb must have saved data to the file system from time to time?
[07:29:32] <joannac> dweeb: when was the snapshot taken?
[07:38:10] <dweeb> joannac: Can I ask my server provider anything to debug this? There must have been files stored in the filesystem during these 300 days that must have been copied by there automated snapshot?
[07:38:15] <joannac> In any case, yes, mongodb flushes to disk.
[07:48:17] <chovy> joannac: the maxDistance, what units are those?
[07:48:56] <joannac> chovy: whatever units you're using.
[07:50:23] <joannac> chovy: "The optional $maxDistance operator limits a $nearSphere query to return only those documents that fall within a maximum distance of a point. If you use $maxDistance on GeoJSON points, the distance is measured in meters. If you use $maxDistance on legacy coordinate pairs, the distance is measured in radians."
[17:29:23] <deepy> I have a list I'm iterating over, I want to insert these into mongodb, should I create a DBObject list and pass that to my DBCollection's .insert() or should I .insert() them immediately?
[17:48:02] <Pinkamena_D> does anyone know how to insert a date into pymongo from tuple format?
[18:24:03] <synesp> I'm noticing a lot of entries in mongodb log from update queries looking like this: ntoreturn:0 ntoskip:0 nscanned:42 keyUpdates:0 locks(micros) r:165 nreturned:1 reslen:85 121ms
[18:24:26] <synesp> maybe every 3,000 updates or so, ill get one of these
[18:51:13] <jyee> anyone know if there are issues with osx mavericks and the 2.4.7 build from mongodb.org/downloads?
[18:57:35] <_sri> jyee: use homebrew, they have workarounds
[19:34:47] <hno> Hi. Need tu run a sanity check on two collections with manual cross-references, to check if there is any dangling references etc. is there any tutorial somewhere that covers such operations?
[20:53:15] <hno> got the job done with some forEach()..
[21:17:59] <dharmaturtle> Hi all, when I try to .update() a subdocument, I overwrite instead of appending to it. How can I append to it? http://pastie.org/private/nybtthgj3cyp7qj7xkm4q
[22:22:41] <arch_> hey, i'm trying to learn mongodb and pymongo. I have a bunch of lists of dictionaries like this http://pastie.org/8433377 ... I want to be able to fetch the events according to the datetime, but I have no idea how I should save these to mongo.
[22:23:06] <arch_> can anyone point me to the right direction?
[22:27:47] <ginhinio> arch_: people here don't reply too much i think you should check the docs sadly i don't know python
[22:50:45] <flatr0ze> could please someone give me advices/links/other references on how to enable https with meteor? All I managed to find so far is this: "If you are talking about installing certificates for publicly facing applications it is probably best to use a reverse proxy server such as nginx and install the certificates for that server. http://wiki.nginx.org/HttpProxyModule"
[23:04:55] <hno> flatr0ze, that's pretty much a statement... don't enable https in meteor, instead wrap meteor in https by using a proxy.
[23:05:36] <flatr0ze> wouldn't it slow down the thing?
[23:09:15] <hno> flatr0ze, might even speed up the thing..