PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Thursday the 22nd of November, 2018

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[06:24:07] <cfoch> ji
[12:43:54] <cfoch> I am expecting that if I insert
[12:43:56] <cfoch> A B
[12:44:19] <cfoch> A C
[12:44:20] <cfoch> could be inserted too
[12:44:36] <cfoch> but I get a DuplicateKeyError because A is duplicate
[12:44:40] <cfoch> duplicated*
[12:44:54] <Derick> is A an _id with the same value?
[12:45:03] <Derick> you need to show the real data
[12:47:14] <cfoch> sure
[12:53:37] <cfoch> ok, I got it
[12:54:03] <cfoch> Derick: https://paste.fedoraproject.org/paste/VETfojVuMq7E-IEqNa3xKw
[12:55:46] <cfoch> Derick: and this is my index
[12:55:46] <cfoch> https://paste.fedoraproject.org/paste/dDRSx~BGKSyzRonMovR68w
[12:56:10] <Derick> cat scripts/presets/travis/standalone/standalone-ssl.json | sed "s@\$TRAVIS_BUILD_DIR@${PROJECT_DIRECTORY}@"
[12:56:12] <Derick> oops
[12:56:20] <Derick> > db.users_artifacts.insertOne({"user_id": ObjectId("5bf64499276a297661dca663"), "artifact_id": ObjectId("5bf64471276a2976c7888c33"), "value": 7})
[12:56:22] <Derick> grr
[12:56:34] <Derick> why doesn't the fedora pastebin let me copy?!
[12:56:48] <Derick> userd_id_1_artifact_id_1 « your index name
[12:56:58] <Derick> is created for the table "userd" and not "users"
[12:57:04] <Derick> sorry
[12:57:13] <Derick> the name is created for field userd_id, and not user_id
[12:57:41] <Derick> and because the field userd_id is empty (NULL), you can't create the new document with NULL, and a repeated arrtifact_id
[12:59:30] <cfoch> so the name should be
[12:59:39] <cfoch> user_id_1_artifact_id_1
[12:59:40] <cfoch> ?
[12:59:51] <cfoch> ahhh
[13:00:09] <cfoch> I misspelled it
[13:00:32] <cfoch> I was 2 hours trying to figure out what I was doing wrong
[13:01:04] <cfoch> sorry for this dumb question
[13:03:47] <Derick> that's ok!
[13:04:07] <Derick> i've been there too :)
[19:19:34] <bsamorim> Hi, is there any way to output the result of a query to a file without any significant intermediate buffers?
[19:20:37] <bsamorim> I've tried the naive approach of simply running "mongo --eval <myquery> > <outfile>", but the result was buffered before being written
[19:20:48] <bsamorim> (As it obviously would_
[19:20:50] <bsamorim> )
[23:18:34] <quarters> hello. I haven't worked with mongodb with node without mongoose with promises in forever and forgot how to set it up such that I don't get a db.collection is not a function error
[23:19:09] <quarters> I'm hoping that I don't have to contain my server inside some callback for mongodb