[07:08:24] <mnek84> someone can help, im new on mongo and im trying to make a stats database for links, and i need some advices about preagregation and mapreduce..
[07:25:27] <mnek84> i should execute mapreduce each time a make an insert?
[07:42:15] <joannac> mnek84: I am not at all clear what you are trying to do.
[10:44:01] <ev0x> slightly stuck. Im trying to find the data type of a specific column
[10:45:17] <ev0x> i need to modify the value in one of the records.. a standard update kills it becuase app seems to think the datatype is wrong
[10:48:06] <kali> there is no columns, and no records, but fields and documents. it's not only terminology: there is no enforcement of the type of the value of a field in mongodb
[10:48:27] <kali> ev0x: but your app may make assumptions
[10:48:31] <ron> there's no enforcement, but there *are* types.
[10:54:12] <ev0x> somewhere in here maybe? https://github.com/jawr/ebftpd/tree/master/src/db/user
[10:55:13] <kali> well, many things suggest ip mask is expected to be an array
[10:55:31] <kali> bson type 4 is array (2 is string)
[10:55:35] <ron> if you update the document manually, why can't you read a sample before updating and show us?
[10:56:01] <kali> so i guess you're breaking your app by storing a string where it expects an array
[10:59:40] <ev0x> ron: sorry i dont understand you properly.. this is the first time ive used mongo.. im a mysql user normally
[11:00:52] <ron> ev0x: well, what kali told you makes sense. try running db.users.update( { name: "ev0x" }, { $set: { "ip masks": ["*@*"] } }, { multi: true } ) and see if the problem is solved.
[11:03:57] <ev0x> ron: thanks using the [] seems to have fixed it
[11:04:24] <ron> ev0x: thank kali, he's the one who suggested it.
[14:38:22] <rohanrhu> Chepra: i'd read "mongo collects datas before writing"
[14:41:39] <Chepra> rohanrhu: what are you talking about? ;)
[14:42:56] <rohanrhu> Chepra: is there a reliable article about mongo's performance
[15:20:54] <rohanrhu> Chepra: is there a reliable article about mongo's performance?
[21:23:43] <lilleman> Newbie question: While trying to connect to my local mongo server from PHP I get "No candidate servers found", but the mongo-shell works fine
[21:23:54] <lilleman> Hints on where to look for answers are very welcome :)
[21:29:02] <spellett> your connecting to mongodb://localhost?
[21:29:51] <spellett> new to mongo as well but the reference manual mentioned that location for connecting
[21:30:19] <lilleman> spellett: In bash I just write "mongo", and the mongodb server is installed on the same machine... so I assume its on localhost :)
[21:30:28] <lilleman> I tried connecting to 127.0.0.1 also...