[07:24:41] <jelle> I wonder if you can sort a subdocument on query
[07:27:35] <Zelest> i think that need some aggregation magic
[12:50:30] <SimpleName> after I addShard to cluster with mongos, now when I use enable Sharding(“database”), it show me need auth, so how to auth , use admin , db.auht() does not work
[12:56:43] <SimpleName> not authorized on admin to execute command { enableSharding
[14:11:20] <suicidel> I am trying to install mongo following the install guide. After importing the key and adding the repo, I get unable to locate mongodb-org when I install....
[14:37:21] <AlmightyOatmeal> wow, so much help here on IRC...
[14:37:29] <AlmightyOatmeal> don't everyone jump in at once and help people out here
[14:37:52] <AlmightyOatmeal> it really turns me off of MongoDB and makes me want to find another solution where people actually give a damn.
[14:41:30] <cheeser> 1. it's a holiday in the US. 2. there are also mailing lists. 3. people *do* give a damn.
[14:41:58] <cheeser> if *you* have an answer for suicidel, then by all means answer.
[14:51:59] <AlmightyOatmeal> cheeser: i've been asking a relatively simple question for days but i've been looking at the number of questions coming in vs the number of answers being given (or even advice)
[14:52:18] <AlmightyOatmeal> so it is rather disappointing.
[14:55:17] <cheeser> this isn't the main support forum. that's the mailing list. there are some of us here who do what we can but we're not always here and we don't always know the answer (or have the time to follow through)
[15:13:59] <adrian_lc> hi, is an "unordered bulk operation" with only updates roughly equivalent in performance to updateMany ?
[18:03:14] <AlmightyOatmeal> can i get a value from a document based on a string within the document while doing an aggregation?
[18:08:34] <AlmightyOatmeal> for example, {'_source': {'tacocat': true, '_properties': ['tacocat']}
[18:08:59] <AlmightyOatmeal> so i do an $unwind and $_source._sf_properties becomes the string in the array
[18:11:25] <AlmightyOatmeal> so thinking of it like a python dictionary, i'm trying to do: _source[_source._properties] (with _source._properties being the unwind value
[22:59:48] <SET001> I'm building a game where each account can have a bunch of characters. Should I store those characters as part of accounts document or should they be stored in separate document?
[23:00:38] <SET001> I'm very new in noSQL and it's kinda hard to make used to it after relational DBs
[23:11:19] <earendel> hi.. does mongodb use some kind of compression internally? the reason i ask is following: i have a collection storing objects with fieldnames like {"server": "irc.freenode.com", "channel":"mongodb", "nick":"earendel", "message":"hello world", "time":"blah"} ..now with thousands of entries my db grows kinda large. and i asked myself it would make any sense to use shorter fieldnames to save on space.. so for the
[23:15:46] <blizzzard> Hey how would you setup a schema to support a User rating/favorite system?
[23:15:50] <earendel> maybe one more.. i know relations are not the domain of mongodb, but is there any way to have relations handled on db level even in mongo?
[23:16:25] <blizzzard> The only kind of databases I've set up are basic string based ones so I have absolutely no idea how to approach this.
[23:16:51] <blizzzard> I've thought of something like favorites: [{ type : ObjectId, ref: 'User' }]
[23:17:09] <earendel> i have like 3 servers..but every log entry contains the full host name.. which is annoying (in puncto space)
[23:17:21] <blizzzard> such that favorites would be a collection of ID's
[23:17:40] <blizzzard> is that the right direction? how do I achieve a rating system?
[23:19:26] <earendel> one solution i can think of is to have another collection with an enumeration of servers, and storing their ids in the logs, and do the match in the application..
[23:24:08] <earendel2> i could also use a collection for each host.. if anyone has ideas or suggestions on that.. please ping me. thanks.
[23:29:29] <earendel> blizzard: usually u would go for a m:n table .. like Object (PK:ObjectId) <-> UserRatedObject (PK:RatingId,FK:ObjectId, FK:UserId, Rating) <-> User (PK:UserId)
[23:29:51] <earendel> UserRatedObject would be the m:n table
[23:32:07] <earendel> that would make 3 tables in total.. that's the relational approach