PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 11th of July, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[00:08:40] <mastyd> nofxx: Yeah so currently I experimented with storing in redis, but I don't really need the historical position data until the event is done, and grabbing all the positions seems to be pretty slow on redis, considering I'm doing like 1200 lookups per user at the end of the event
[01:27:09] <SGTItlog> Hi, I just noticed something between count and aggregate. Let's I want to count every documents that has something. The count is not the same as the aggregate. Why is that so? Thanks.
[02:00:26] <SGTItlog> Because the field is not sharded thats why the aggregate only query the first shard.
[02:26:54] <svm_invictvs> cheeser: heh
[02:27:06] <cheeser> ?
[02:27:27] <svm_invictvs> cheeser: Every search for how to do something in Morphia seems to end up wiht your name.
[02:27:45] <cheeser> well, i'm the maintainer so that's not terribly surprising
[02:28:12] <svm_invictvs> Yeah
[02:28:27] <svm_invictvs> Well, actually I dind't know you were the maintainer I thought you were a contributor
[02:28:34] <cheeser> now how much of that is someone cursing my name? :)
[02:28:59] <svm_invictvs> cheeser: From me, none, I actually liek Morphia quite a lot
[02:29:17] <cheeser> https://github.com/mongodb/morphia/graphs/contributors
[02:29:31] <cheeser> i'm happy to hear that. i'm quite fond of it myself.
[02:32:39] <svm_invictvs> Morphia supports compound keys right?
[02:32:45] <cheeser> it does
[02:33:20] <svm_invictvs> Does the target object just have to be an @Embedded type?
[02:36:22] <cheeser> i don't think so.
[02:36:52] <svm_invictvs> hm
[02:37:06] <cheeser> https://github.com/mongodb/morphia/blob/521bd9c90fa53e8815393a783a6c09f4e5edfc82/morphia/src/test/java/org/mongodb/morphia/mapping/CompoundIdTest.java
[02:37:39] <cheeser> actually, @Embedded might be required because otherwise Morphia will expect an @Id annotation
[02:37:54] <svm_invictvs> yeah
[02:41:08] <svm_invictvs> You know a compound index may get me what I want
[03:07:21] <svm_invictvs> So
[03:08:46] <EXetoC> pymongo only fetches one batch now for some reason
[03:10:12] <EXetoC> nvm
[03:13:15] <svm_invictvs> @Indexes({@Index(value="platform", unique = true), @Index(value="application", unique = true)})
[03:13:28] <svm_invictvs> Does that create a compound unique index?
[10:22:58] <styles> db.users.createIndex( { name: "text" } )
[10:23:06] <styles> this isn't working
[10:23:22] <styles> db.users.find( { $text: { $search: "styles" } } )
[10:23:32] <styles> this is my example ( returns 0 results with data that is there in the "name" field)
[12:40:46] <CreativeWolf> Heya all :)
[13:07:34] <styles> hey CreativeWolf
[13:33:35] <CreativeWolf> styles, :)
[13:33:47] <styles> hey CreativeWolf havce you ever worked with text searching
[13:33:56] <CreativeWolf> styles, First day with MongoDB! :P
[13:34:02] <styles> ah ok
[13:34:06] <styles> any questions I can probably help
[13:34:24] <CreativeWolf> Just got the environment set up with Raspberry Pi (node js, nginx).
[13:34:33] <styles> coolio
[13:34:36] <styles> I use nginx / golang :p
[13:34:51] <CreativeWolf> styles, I'm sorta stuck with the authentication - Need to unlearn mySQL looks like.
[13:35:56] <styles> haha
[13:36:04] <styles> use database
[13:36:07] <styles> db.createUser
[13:36:55] <CreativeWolf> Yeah, reading the documentation again and again :)
[13:56:08] <CreativeWolf> styles, Working on any project?
[13:56:13] <styles> always
[13:56:26] <styles> http://www.asiaamore.me is the current one for lulz
[13:57:58] <CreativeWolf> Cool...
[13:58:06] <CreativeWolf> Using Mongodb and golang?
[16:11:29] <greyTEO> GothAlice: How is it going?
[16:12:17] <greyTEO> if you have a chance, I am having an issue with the worker and need a bit of assistnace. I cant get it to enter this loop: https://gist.github.com/amcgregor/52a684854fb77b6e7395/75670c2ab697f51768db4bc793ee6be0b0af5b05#file-worker-py-L99
[16:12:44] <greyTEO> but I do see the cursor count at 2072
[16:14:35] <greyTEO> and last alwasy equals None
[16:53:11] <greyTEO> has anyone encounter pymongo cursor showing a number greater than 0 and teh loop failing becuase its empty?
[17:17:51] <sterns> hello, I am attempting to install mongo 2.x on Debian Wheezy. I've been trying to use the 10gen repo indicated here: https://futurestud.io/blog/how-to-install-mongodb-2-6-on-ubuntudebian/
[17:18:20] <sterns> but the server package throws an error about the /etc/init.d/mongod script
[17:18:45] <sterns> I've tried 2.6.10, 2.6.3, 2.6.2 they all do the same thing.
[17:20:25] <sterns> it appears that a symlink is created to a script in /lib/init that does not exist.
[19:13:09] <CharlesFinley> Hi, I'm trying to: 1) retrieve a document by id 2) push some new subobjects into the retrieved object. However, i'm getting an error: return this._schema.caster.cast(value, this._parent, false), TypeError: undefined is not a function. My code is here: http://pastebin.com/Yv1JBcjx
[19:13:46] <CharlesFinley> The error is caused by this instruction: result.documents.push(subdue);
[19:14:35] <CharlesFinley> result is: { _id: 55a14c967f65745c091faede, __v: 0, documents: [] }
[19:17:59] <CharlesFinley> anyone? :(
[19:44:56] <CharlesFinley> Hi, I'm trying to: 1) retrieve a document by id 2) push some new subobjects into the retrieved object. However, i'm getting an error: return this._schema.caster.cast(value, this._parent, false), TypeError: undefined is not a function. My code is here: http://pastebin.com/Yv1JBcjx
[19:46:25] <StephenLynx> are you using mongo?
[19:46:46] <StephenLynx> mongoose*
[19:46:51] <CharlesFinley> mongoose
[19:46:59] <StephenLynx> remove it and try again.
[19:47:28] <CharlesFinley> sorry?
[19:47:39] <CharlesFinley> remove the module?
[19:47:46] <StephenLynx> for mongoose, yes.
[19:49:31] <CharlesFinley> StephenLynx: same error
[19:50:03] <StephenLynx> link the new code.
[19:51:53] <CharlesFinley> StephenLynx: http://pastebin.com/YiQ0RGxm
[19:53:07] <StephenLynx> that is completely wrong.
[19:53:26] <StephenLynx> you have to get a pointer to the collection from the database and call the function of the collection pointer.
[19:54:23] <CharlesFinley> StephenLynx: sorry, i'm a mongoose newbie. Can you show me how to?
[19:54:25] <StephenLynx> var collection = db.collection('myCollection'); collection.findOne(blablabla);
[19:54:30] <StephenLynx> you don't use mongoose.
[19:54:37] <StephenLynx> it is cancer coded.
[19:54:46] <StephenLynx> single worst ODM I ever saw.
[19:55:02] <StephenLynx> stick to the native node.js driver.
[19:58:45] <CharlesFinley> what is db in your example? Where do i start?
[20:00:41] <StephenLynx> http://mongodb.github.io/node-mongodb-native/2.0/
[20:00:48] <StephenLynx> "Connecting to MongoDB"
[20:01:14] <CharlesFinley> well i'm using mongoose
[20:01:19] <StephenLynx> again, don't use mongoose.
[20:01:31] <CharlesFinley> why is it bad?
[20:01:56] <StephenLynx> because it is extremely bad designed, slow and inconsistent with the default mongodb behaviour.
[20:02:11] <CharlesFinley> hmm :/ i'm stuck with it
[20:02:18] <StephenLynx> good luck then.
[20:02:45] <StephenLynx> I suggest you look for help on their channel, I have never seen anyone here getting advice for it ever.
[20:03:08] <CharlesFinley> there are 3 people in their channel :(
[20:03:15] <StephenLynx> hm
[20:03:26] <StephenLynx> you can try not using it.
[20:21:01] <CharlesFinley> BLOODY HELL
[20:21:07] <CharlesFinley> can't get it to work
[20:21:18] <CharlesFinley> how can it possibly be so difficult
[20:26:26] <StephenLynx> the example I linked is very straight forward
[20:38:23] <CharlesFinley> StephenLynx: i must use mongoose :(
[20:38:33] <CharlesFinley> StephenLynx: http://stackoverflow.com/questions/31361547/cannot-push-subdocuments-to-a-documents-array-in-mongoose
[20:39:54] <StephenLynx> hm
[20:44:26] <CharlesFinley> StephenLynx: anyways, thanks for your help. I'm off to watch some stupid stuff on Netflix. Enjoy your evening :-)
[20:45:48] <StephenLynx> k
[20:54:26] <dimon222> *mongoose is bad, any other implementation is better imo