[00:31:29] <mindlogger> is mongodb a map/reduced database?
[01:18:31] <wahben> Hey Guys, I am using mongo's geospacial querying abilities, but because a technicality (I'm a python ORM), I decided that the simplest way for me to get the distance of my points is to re-calculate it client side (with javascript). However, I then noticed that I am getting different results than what is calculated with MongoDB. So my question is: Does mongodb's $centerSphere use haversine formula?
[01:19:05] <wahben> By "I'm a python ORM" I meant that I'm using one of course :P
[01:47:21] <zx2c4> how can I get mongodbd to execute a program for me?
[01:47:31] <zx2c4> not the mongodb client, but the server itself
[18:31:23] <l3dx> (I've also tried the suggestion change)
[18:39:42] <jiffe1> I have a replica that seems to be failing, can I just remove all the data and have it resync?
[18:52:56] <jiffe1> well that was easier than I thought
[19:43:57] <eindoofus> hi, just saw that mongodb is on the job trends list and I was just curious what it's used for? and is it similar to other relational databases like mysql, sql server, etc. ?
[19:50:48] <mrpro> here's how i am using it: i have a custom dictionary of string keys and values of differnt types that implement a certain interface
[19:50:57] <mrpro> i have a serializer for each type
[19:51:14] <mrpro> that dicttionary could have differnt keys set each time…so i dont know what the schema will be like
[19:51:41] <mrpro> then when i need to save to mongo, i loop through each item in the dict, use appropriate serializer for each diff type and create one big mongo document that i save to mongo in one shot
[19:51:56] <mrpro> with relational, this would need to be like 20 calls to the databsae
[19:52:27] <mrpro> and each of those values of diff types would need a bunch of tables
[19:52:31] <eindoofus> what are you storing in the dictionary?
[19:52:35] <mrpro> hell, this would probably be 100 calls
[19:53:36] <mrpro> basically imagine a dictionary of keys/objects
[19:53:54] <eindoofus> what type of development do you do if you don't ask me asking? java, c#, android, etc.?
[19:53:59] <mrpro> objects are of all differnt types and are complex…i.e… they have collection fields that hold complex types which in turn have collection fields....etc
[19:54:07] <mrpro> imagine designing a relational database for it
[19:54:12] <mrpro> i'd have like a gazillion tables
[19:54:16] <mrpro> and changing things would be a nightmare
[19:54:31] <mrpro> this way i have just one table and i need to make just one trip to the database to save things
[19:55:09] <mrpro> with RDBMS if you go all normalized, you'd need to make like 100s of calls…..latency to DB adds up….
[19:55:18] <mrpro> in this case since i am saving one big record, i dont need transactions
[19:55:43] <mrpro> best case with RDBMS i would need to make 20-40 inserts..depending how many keys i got
[19:55:51] <eindoofus> so it's primarily used for games, or ...?
[20:01:29] <mrpro> think of it as a dictionary with key/document pairs
[20:01:45] <mrpro> a document is also a collection of key/document pairs :)
[20:01:54] <eindoofus> i see, but each record would be the equivalent of taking a rdbmc table and focusing on it and using it's connections as subdocuments?
[20:03:59] <mrpro> baically taht big document is a snapshot fo user's latest state
[20:04:06] <mrpro> so when server goes down or anyhing
[20:04:18] <mrpro> it can grab the latest state for that user from mongo
[20:04:29] <mrpro> and deserialize it into memory object
[20:04:37] <mrpro> but….the other thing i am doing is
[20:04:43] <mrpro> i have a mapping of keys -> collection
[20:05:05] <mrpro> some values in that big blob also go to separate collections for historical purposes
[20:06:02] <mrpro> so i jsut take the serialized value object and get collection name mapping using the key, and automatically store it in a separate collection with DATE and USER_ID
[20:06:14] <mrpro> so then i can pull out history of that thing by USER_ID
[20:06:23] <mrpro> and obv there is user's table as well
[20:41:01] <hdm> using a sharded setup, sharding definitely working, i see all of my inserts under the "noSharded" section of db.collection.stats() [ under ops ], is that right?
[20:51:04] <Neptu> hej trying to make work the c++ driver within a replica set and seems not to run properly
[20:51:14] <Neptu> using DBClientReplicaSet class for the connection
[22:33:12] <mrpro> hey. is it possible to save to a collection only if a record doesnt exist due to some criteria