PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 28th of June, 2014

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[10:25:22] <KushS> I am using mongoose for my node app. Earlier I used it to connect to a mongolab db but now I am using the same code to store data on my local db but the it does'nt seem to register the schema I created. Should I change something else apart from the db url ?
[14:56:07] <DrIDK> hello, how can I set the depth level of my find request ? I have 3 kind of level : Users has many A which have many B, which have many C. I only want to get the user list ?
[15:41:34] <akiba_> hey
[15:41:49] <akiba_> can you help me change some of my code to work with nosql?
[15:45:40] <akiba_> anyone?
[17:36:12] <Tulsene> hello
[17:36:30] <Tulsene> I search to clear a field in my documents
[17:36:37] <richthegeek> $unset
[17:36:54] <Tulsene> ok I retry another way
[17:37:41] <Tulsene> It didn't work
[17:37:48] <Tulsene> db.userNomade.update({roleNames: [ "ROLE_SIMPLE_USER" ]},{$unset:{"langues": null}},{multi: true})
[17:37:49] <richthegeek> is it possible to do a string "split" or even an eval in the aggregation framework? specifically, i am hoping to do an analytics query for the "top referrering domains"
[17:38:00] <richthegeek> but my data has the referrers as the full URL (incl. path)
[17:38:34] <richthegeek> Tulsene: your query is likely incorrect, try {roleNames: "ROLE_SIMPLE_USER"} (without the array)
[17:40:20] <Tulsene> still don't work richthegeek
[17:40:45] <richthegeek> oh right yeah, change null to 1 in your update
[17:41:38] <Tulsene> still not .. could I show you my document in mp?
[17:42:10] <richthegeek> put it on pastie.org
[17:58:56] <akiba_> what database should i use for this search+game server accounts+sessions+leaderboards+forums
[18:03:45] <richthegeek> mongo will work for that well enough - search is potentially better served by Apache Solr, game server accounts are simple enough generally (see Passport.js if node), sessions are perfect for documents, leaderboards can be done with the aggregation framework, forums are bit relational which isn't ideal for mongodb - forums are usually better done with SQL
[18:04:37] <akiba_> the game server is in java
[18:05:26] <richthegeek> most databases have a java driver, including Mongo, PostgreSQL, and Solr
[18:05:26] <Tulsene> if u don't want to build an entire forum and start from nothing I can use MySQL and JForum
[18:08:40] <akiba_> i had it on phpbb
[18:09:33] <akiba_> i never heard of jforum before
[18:09:50] <akiba_> but i probably wont need it unless it is significantly better or faster
[18:10:11] <akiba_> cause my php is compiled to bytecode which is then jit compiled
[18:10:19] <akiba_> so it runs a hell of a lot better than regular php
[18:10:24] <Tulsene> sure, it was only because your game server was in java
[18:10:33] <akiba_> yeah that makes sense thanks :)
[18:38:07] <akiba__> sorry got dced
[18:38:12] <akiba__> so what databases?
[19:09:29] <jkitchen> dpkg: warning: while removing mongodb-10gen, unable to remove directory '/var/lib/mongodb': Device or resource busy - directory may be a mount point?
[19:09:45] <jkitchen> err. why is "apt-get remove mongodb-10gen" trying to wipe out /var/lib/mongodb ?
[19:10:56] <jkitchen> apt-get purge I might expect that, but not remove..
[19:15:33] <Tulsene> mongod still runing?
[19:16:02] <jkitchen> no
[19:16:13] <jkitchen> I had shut it off prior to removing the package anyways
[19:18:17] <Tulsene> in your place I tried to rm -r /var/lib/mongodb but I don't think it'a a good idea for remove it properly ...
[19:18:39] <jkitchen> huh?
[19:18:46] <stefandxm> jkitchen, if theres no dependencies left and no configuration files there why not?
[19:19:20] <jkitchen> stefandxm: because what about my data?
[19:19:50] <jkitchen> in debian-land *purge* is the "delete all the things" command. remove should just remove the package files
[19:19:58] <Tulsene> do a mongodump before try
[19:20:00] <Tulsene> ofc
[19:20:43] <stefandxm> jkitchen, agreed
[19:20:51] <stefandxm> although remove imo is always jumpy
[19:27:14] <DamianG> Guys, I want to make sure id it's a good idea to store images in mongodb / gridfs ? I'm refactoring a semi big portal with about milion of images, and jsut wondering - store them on disk or in gridfs ?
[19:27:24] <DamianG> if*
[19:33:59] <toothr> DamianG, doens't seem worth it to me at all.
[19:35:32] <toothrot> sorry, i mean it's does not seem worth it to use gridfs
[19:35:44] <toothrot> sigh.. can't type
[19:38:09] <cheeser> i haven't seen any benchmarks on how fast you'd be able to serve data from it
[19:40:45] <toothrot> http://perspectives.mvdirona.com/2008/06/30/FacebookNeedleInAHaystackEfficientStorageOfBillionsOfPhotos.aspx
[19:41:00] <toothrot> (not about gridfs of course)
[19:44:31] <DamianG> toothrot, thanks, I will check this article