PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Saturday the 6th of February, 2016

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[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:22] <cheeser> then don't copy that part
[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?
[04:47:02] <Pharmboy`> any advice on mongoimport?
[04:52:34] <sorabji> i don't think mongoimport can do what you want
[04:54:32] <Pharmboy`> is the only other way to do it through a script?
[04:55:13] <Pharmboy`> i love the performance of mongoimport, a script takes way longer to the point where I have never gotten the script to finish
[04:55:22] <sorabji> if by script you mean something other than mongoimport, yeah
[04:55:22] <Pharmboy`> and mongoimport takes 5 minutes to do 50 mil
[04:56:04] <sorabji> since mongoimport can't do what you need
[04:58:12] <Pharmboy`> ok, thought maybe there was some tweaks I could do to mongoimport or other options for fast imports
[04:58:12] <Pharmboy`> thanks
[04:58:12] <sorabji> best i can advise it to spread the work out
[04:58:12] <sorabji> is*
[04:58:13] <sorabji> batch it up, run things in parallel
[04:58:13] <Pharmboy`> i've kind of tried that but haven't taken it too far, will look into it next
[06:44:04] <yoofoo> I can't get "service mongodb start" on ubuntu 15.10. Please advise
[06:44:47] <yoofoo> Sorry, let me try again.
[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:24:45] <m3t4lukas> Waheedi: nope
[09:25:02] <Waheedi> ok thank you m3t4lukas :)
[09:25:05] <m3t4lukas> Waheedi: better is using tagged sharding ;)
[09:25:16] <Waheedi> thats too much for my little brain
[09:25:54] <m3t4lukas> Waheedi: keep in mind that data might be outdated, depends on how well your infrastructure handles the load :)
[09:26:39] <Waheedi> data in terms of ping threshold? or tagged data
[09:27:35] <Waheedi> what data?
[09:27:58] <Waheedi> or you mean database's data?
[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"}}
[19:36:10] <Waheedi> ?
[21:40:13] <CustosLimen> hi
[21:40:22] <CustosLimen> anybody using mongo in production on rhel with tuned ?