[00:34:29] <Techdeck> Hey everyone. Question: I'm building an app where I have a huge catalog of items a user can buy, and once he buys them, they're added to his account. How would you suggest designing the collection of UserContent? would I copy the entire item into his collection? will I only store the catalog item IDs in his collection? one item that I may have in the catalog is rating, which keeps changing
[00:34:29] <Techdeck> obviously, so I wouldn't copy that. But wouldn't 'joining' the two collections be a performance issue? how would you design this?
[00:44:31] <cheeser> i would copy items to an order thus preserving the state of the item at the time it was ordered.
[00:52:53] <Techdeck> cheeser, but for instance I have things that are global, like rating of the item
[00:53:01] <Techdeck> that part shouldn't be copied
[00:53:58] <Techdeck> so when I list the user items, I will need to fetch the rating for each of the items? wont that be slow?
[00:54:03] <Techdeck> isnt there a better solution?
[00:54:30] <cheeser> why would the rating matter then if you're displaying historical order data?
[01:38:38] <Techdeck> cheeser, sorry for the delay, it's not historical
[01:39:01] <Techdeck> for instance, let's say my item is a media file (a song for instance)
[01:39:28] <Techdeck> the user now owns that song, and needs to see it's rating, but that song has global data, such as the artist name, album name etc
[01:39:44] <Techdeck> in a relational DB, this would be easy, all I would need is a simple join
[04:22:25] <Pharmboy`> hello, is anyone here familiar with mongoimport and alternatives for mass upload?
[04:27:51] <Pharmboy`> using mongoimport is very fast, but I am only allowed to import new records not add to existing ones, ... plus I can not import numbers with padded zeros. I wrote a script for this but performance goes way down and it takes much much longer to import records, does anyone have any high performance alternatives?
[04:36:56] <Pharmboy`> using mongoimport is very fast, but I am only allowed to import new records not add to existing ones, ... plus I can not import numbers with padded zeros. I wrote a script for this but performance goes way down and it takes much much longer to import records, does anyone have any high performance alternatives?
[06:45:02] <yoofoo> I can't get "service mongodb start" to work on ubuntu 15.10. Please advise
[07:25:48] <ranman> yoofoo any luck with logs or errors or anything?
[07:30:25] <yoofoo> ranman, I don't remember exactly, but it had something to do with the fact that ubuntu change from initd to systemd. I can use "mongod start" just fine but not "service mongod start". currently I reinstall mongo 2.6 but would like to use 'service mongod start' in 3.2, but not a big deal at this point. Thanks
[08:24:04] <energizer> I'm trying to double check my data and I'm not sure how to do this particular check. Anybody around atm?
[08:58:04] <Waheedi> is using read preference nearest crazy?
[09:31:11] <m3t4lukas> Waheedi: I mean the data you wrote to the primary may not have been replicated to the nearest node at read time, when the nearest is lagging behind or you do an immediate read
[09:36:56] <m3t4lukas> Waheedi: you just need to be able to handle that or it is simply not important, e.g. for analytical data of the past or stuff
[14:25:12] <lancehardwood> hi guys, i have a quick question, maybe one of you can help me with it ~ i have a player collection and i want to issue an update to each entry sorted by their elo property. they all have a rank property which should increment e.g. user 1 gets rank 1, user 20 gets rank 2, etc. is something like that possible?
[15:02:04] <bjjl> New here. Just wanted to say "hello" :)
[17:56:46] <CustosLimen> init scripts for mongo is really a schlep ;(
[18:37:04] <Wikiwannabe> hi, im working on a program to manage an application process. So a candidate applies once. I have a candidate table and the application table. part of the application is for four people to interview and write an assessment of the candidate. how do i design the database. This is my attempt. http://imgur.com/a13DEyy
[19:36:06] <Waheedi> how can I create index for something like this command={:distinct=>"terms", :key=>"tag_name", :query=>{"term_id"=>"510f7dbb7020bc126203367c"}}