[01:18:04] <toter> Hi everybody... I have a user on my mongodb server that connects successfully using db.auth(). When I try to connect using Robomongo with authentication, it doesn't connect... Do I need to create this user again with additional roles?
[04:27:48] <christo_m> is this the place to ask about mongoose also?
[04:29:51] <christo_m> I'm experiencing the same issue as this person: https://github.com/LearnBoost/mongoose/issues/1204 , with this code http://pastie.org/9853384 , trying to save this data: http://pastie.org/9853385
[04:30:10] <christo_m> the items subdocument isn't being updated.
[04:38:42] <christo_m> oh wait even better doc.markModified('array');.. apparently mongoose can't detect if an array has changed *facepalm*
[04:43:47] <DragonPunch> mongoose distcint betrween two fields??
[04:43:50] <DragonPunch> anyone know hwo to get that?
[07:39:56] <aaearon> i have a query that i want to return only if the particular document's codes are all marked 'complete':True. this is what i have so far: http://pastie.org/9853606
[07:40:02] <aaearon> is it possible to do this and how should i modify my query?
[07:45:08] <DragonPunch> what does mongodb return if it cant fidn aynthing
[07:45:34] <aaearon> from the console, nothing from my experience
[12:50:26] <gildo7> how would you solve the problem?
[12:50:51] <StephenLynx> I would model in such a way that I wouldn't need to use anything like a join.
[12:51:10] <gildo7> my problem is that notes are batch updated weekly
[12:51:25] <gildo7> so what I do is throw away all the old notes and add the new ones
[12:51:56] <gildo7> so I cannot add an array of users ids to a note (which is how I'd solve it usually)
[12:52:39] <StephenLynx> you can have an array with note ids on the users.
[12:52:53] <StephenLynx> so you are able to list them without a second query
[12:53:09] <StephenLynx> and you are able to fetch a single note when you need to.
[12:54:08] <gildo7> that's exactly what I do, I have an array of note ids on users
[12:54:33] <StephenLynx> so your model is already ok.
[12:54:54] <StephenLynx> now in your control you just don't fetch the note itself when listing them to the user.
[12:54:56] <gildo7> but when the user runs a search I display the notes in a different way, according to the fact that they are bookmarked by that particular user or not
[12:55:31] <StephenLynx> can multiple users bookmark the same note?
[13:44:09] <huleo> this is probably more of a mongoose.js question, but anyway: I have population going on after my query
[13:44:30] <huleo> and I want to filter out documents whose field wasn't populated (because the referenced doc is no longer there)
[15:14:12] <FunnyLookinHat> Hey everyone - I've got a question with regards to maintaining an extra foreign_key of sorts on records that are being updated at a high frequency: http://pastebin.ubuntu.com/9835900/
[15:36:59] <INIT_6_> Thought so, My google foo didn't bring anything up. Thanks
[15:37:19] <neo_44> INIT_6_: what are you trying to solve with that?
[15:39:08] <INIT_6_> We need to make the oplong 2.5x bigger due to a complex recovery. However, The mount that database is on isn't big enough to support this option. We have other options so its not the end of the world.
[15:42:43] <FunnyLookinHat> neo_44, foreign key is the wrong word to describe it
[15:42:46] <FunnyLookinHat> "identifier" might be better.
[15:43:03] <neo_44> INIT_6_: you can't resize the oplog of an already initiated replica set
[15:43:03] <FunnyLookinHat> StephenLynx, the IDs represent users and cookies
[15:43:12] <FunnyLookinHat> StephenLynx, so - "ref_id" is attached to a cookie
[15:43:29] <StephenLynx> why can't you just attach it to an user?
[15:43:42] <FunnyLookinHat> But if I have a user login on two separate devices I want to associate those cookies together for reporting purposes by setting "alt_id" to represent the user
[15:43:55] <StephenLynx> so you put the same user on both cookies
[15:44:05] <StephenLynx> and use this user id the cookie gave oyu
[15:44:08] <FunnyLookinHat> And I don't necessarilly know that the cookie belongs toe ach user until they've logged in
[15:44:21] <FunnyLookinHat> i.e. if someone visits my site and does a bunch of things and then LATER logs in - I want to associate all of that history together
[15:44:50] <neo_44> FunnyLookinHat: you can create a new record every log in ... bucket the results by the cookie
[15:44:55] <StephenLynx> cant you just store this history in local storage?
[15:45:12] <FunnyLookinHat> StephenLynx, lots and lots of data, and I need to generate reports on it :)
[15:45:15] <StephenLynx> and associate after the user logs in?
[15:45:42] <neo_44> FunnyLookinHat: don't use mongo then
[15:57:15] <neo_44> so all cookies....or all facebook id, etc
[15:57:49] <FunnyLookinHat> Let's call the objects with cookie_id and a bunch of other data "RECORDS" - and the objects with the user and cookies "USERS" -
[15:58:03] <FunnyLookinHat> So I could say "Give me all RECORDS tied to this USER by their cookie_id" ?
[15:58:09] <FunnyLookinHat> That's a join - isn't it?
[15:58:13] <FunnyLookinHat> And join's aren't possible
[15:59:11] <neo_44> the only other way to do it...is how you proposed....to have the cookie on every user record.....and the user name on every cookie record
[15:59:33] <neo_44> or an array of cookie id on the user
[15:59:41] <neo_44> but you would have to do 2 round trips to the database
[15:59:47] <neo_44> one for the array of cookie ids
[15:59:53] <neo_44> then one for the cookie records
[17:13:20] <Xeon06> I have documents with objects with a very precise pattern (author: {_id: ..., ...}) a bit throughout, and am wondering if there's an update query that would allow me to update them all
[17:13:26] <Xeon06> IE, they are not necessarily at the same level
[17:14:47] <canistr> Does anyone know what a MongoError: "No pending nonce" code 17 is?
[17:15:06] <StephenLynx> with an OR clause, I guess you could, Xeon06
[17:15:33] <canistr> getting this error when using mongodb driver for db.admin().authenticate(user, pass)
[17:18:57] <Xeon06> I just realized my question wasn't super clear. This is my data structure http://pastebin.com/aa7aQKJm
[17:19:17] <Xeon06> I'd like to update the author object in the root as well as any author object within the subdocuments, with an ID
[17:19:23] <Xeon06> Would I be better off doing two different queries?
[17:20:21] <StephenLynx> describe your match and update logic.
[17:54:54] <edcaceres> java.lang.IllegalArgumentException: response too long: 1256845501 at com.mongodb.Response.(Response.java:49) at com.mongodb.DBPort$1.execute(DBPort.java:141) at com.mongodb.DBPort$1.execute(DBPort.java:135) at com.mongodb.DBPort.doOperation(DBPort.java:164) at com.mongodb.DBPort.call(DBPort.java:135) at com.mongodb.DBTCPConnector.innerCall(DBTCPConnector.java:289) at com.mongodb.DBTCPConnector.call(DBTCPConnector.java:268) at com
[17:56:09] <kali> first, use a paste service somewhere
[17:56:37] <kali> second, what ar you doing ? it looks like your trying to transfert a huge document
[17:59:57] <edcaceres> im not, the query is almost 50mb size per request
[18:01:04] <kali> and i think a request is limited to 16MB as any document anyway
[18:16:15] <edcaceres> for future references to "response too long message" we just realize this problem is related with java resources, the solution is to increase heap java memory according to need
[19:36:56] <gansbrest> hi. What's the process of restoring replica set on EC2? I took snapshot, attached it to another box, modified config by specifying new replSet name, but instance still has old config from old replica set, listing old servers and wont come up correctly
[19:37:04] <gansbrest> am I doing something wrong here?
[19:37:16] <gansbrest> running it like this sudo /usr/local/bin/mongod --dbpath /data/db/mongod --replSet test-set
[19:37:40] <gansbrest> gives me error like this replSet info Couldn't load config yet. Sleeping 20sec and will try again. every 20 sec
[19:40:33] <gansbrest> and "replSet info self not present in the repl set configuration". It's a new node and should not be in this configuration. Should I manually clean config and define just this master node?
[19:59:22] <Letze> Can someone please explain to me why I would want to use MongoDB over MySQL (MariaDB) ?
[19:59:56] <Letze> I simply cannot paint a clear picture in my head.
[20:01:17] <KLVTZ> newb question: when I run db.users.save({name: '1'}, {name: '2'}), it only saves one. According to an example, i should be able to save two...