[01:13:24] <multi_io_> when you're performing an update the includes an $inc operation, is there a way to find out the new value of the incremented field without performing an additional query?
[01:13:42] <multi_io_> *when you're performing an update that includes an $inc operation, is there a way to find out the new value of the incremented field without performing an additional query?
[01:18:55] <multi_io_> found the "new" option, will try that
[01:36:07] <awpti> I could use some help here -- I feel I'm fundamentally misunderstanding something, but I'll be damned if I can work out what that is: http://pastie.org/8107912 (question is in the pastie with relevant data)
[01:56:25] <pplcf> is it ok to save _id as simple int, not ObjectId(my int)?
[02:50:40] <dyu> we currently have 1.8.1 in production. is it advisable to update it to the latest stable version(2.4.5)?
[02:51:36] <awpti> As long as you have a test env in place to ensure functionality, why would you not update?
[02:54:28] <dyu> uhm. managers? haha. kidding(slightly). i'd just like to know if there are any things to look out for during the update. i'm also not sure if the tests are that mature already. there's no one in the office that i can ask right now
[02:55:30] <mgaogw> Hey guys, quick question regarding post methods. After a form is submitted and the post is requested, how does the info from the form get stored in the receiving server - i.e. how do i access it again to save in mongo?
[02:56:18] <awpti> mgaogw, pick a programming language, learn it. :>
[02:57:44] <mgaogw> i guess i'm really asking how post itself works
[03:16:45] <oklada> Anyone felt like mongoose (ODM for mongodb) has drawbacks because it enforces schemas? is it better just to go with the native driver?
[04:26:00] <thesheff17> is anyone working with mongodb and raspberrypi...I see a couple git repos but they are lacking behind on versions
[05:39:31] <neeky> oklada - Thats a large part of the purpose of an ODM -
[05:39:49] <neeky> if you don't want a schema, don't use an ORM
[09:23:01] <mjburgess> anyone know much about the C driver? i'm wondering how i can construct { "x": [ {"name": "michael"}, {"name": "michael"}, ...] }
[09:23:21] <mjburgess> it seems the inner objects are essentailly annoymous but the api always requires a attribute name
[12:30:13] <Beg_> is it possible to make a non-aggregated sort by custom strings? I have a system of approved, rejected, pending. and would like to sort by pending first
[15:30:23] <Kosch> As far as I read, the replication configuration usually demands the master connects the slave and the slave connects the master. Is it possible to have a slave which has not direct access to the master?
[15:31:21] <Kosch> I'm looking for something where the master just pushed the changes to the slave.
[15:33:16] <Nodex> a replicaset can be part of a shard, not sure if it has to connect to the master or not though
[15:33:36] <Nodex> or whether just connecting to it's shard is enough
[17:35:48] <awpti> I could use some help here -- I feel I'm fundamentally misunderstanding something, but I'll be damned if I can work out what that is: http://pastie.org/8107912 (question is in the pastie with relevant data)
[17:37:12] <awpti> This same thing happens even if I toss the $and, and only do a .find( { visitguid_1: ###### } ), it still returns all records in the table.
[17:40:14] <Nodex> what are you trying to achiebe?
[17:40:58] <awpti> Just to get a single record that matches a given value. As far as I've been able to understand, doing a .find( { field:val } ) should return only the item(s) that match that value.
[17:41:13] <Nodex> does that record contain both the fields?
[17:43:44] <awpti> { "_id" : ObjectId("51d4837fac5b631d78d799e0"), "visitguid_1" : 4316825677377845000, "visitguid_2" : 9745372576957034000, } <--that's the single record that exists. even if I do a .find( { visitguid_1: 1234 } );, it returns that record.
[20:39:44] <awpti> I'm running db.events.find( { visitguid_1: 4316825677377845000, visitguid_2: 9745372576957034001 } ) --- the value from visitguid_2 does not exist, yet this query returns a document. What the hell am I missing here? This is an implicit AND, as far as I understand.
[20:40:30] <kali> awpti: show us how you run the command and whan mongodb returns, please
[20:41:57] <awpti> How do i deal with this, then? My application uses numbers like this everywhere. Should I just treat them as strings instead of integers?
[20:51:38] <awpti> I assume this saves it as a string, or does mongo assume "string of numbers == int"? db.events.save( { visitguid_1: "4316825677377845000", visitguid_2: "9745372576957034001" } );
[20:52:56] <awpti> I should just have the dev find a better way to reference records. :>
[20:52:58] <kali> nope, it saves as a string, no monkey business here
[20:55:05] <awpti> Now it works as expected. So, note to self: Store these as strings or get dev to find a better way to do it.
[20:55:46] <kali> objectid or binary would be better in term of storage
[20:56:22] <awpti> I'll have to read up more on those. Gotta wait until the 15tg for the next 10gen class, so I'm running somewhat blind and coming from a pure SQL background.
[20:56:35] <kali> or if you're sure what you have is 64 unsigned integer, substract 2^64 to be bigger half to get them back in the "right" range
[22:10:50] <loconut> hello- I'm trying to get started with mongodb on the right foot. What's the correct/best interface to mongodb from Node.JS- is it Mongoose (npm install mongoose), MongoDB (npm install mongodb), something else? I plan to use/need GridFS as well. Does that change the answer?