PMXBOT Log file Viewer

Help | Karma | Search:

#mongodb logs for Tuesday the 13th of October, 2015

(Back to #mongodb overview) (Back to channel listing) (Animate logs)
[01:20:28] <fructose_> I'm looking to have a field that keeps a count of items, ideally so I can write a query with an array of those items and the count will increment. Can I do that in a single update?
[01:23:43] <markizano> When mms does backups, is there any component run externally from the server running the mms agent (e.g. from mms.mongodb.org?)
[01:24:02] <fructose_> e.g. if I run an update with {id: myId} and (somehow) items: ["apple", "banana"], it will store "apple": 1, "banana": 1. Then if I did it again with just ["apple", "carrot"], it'd end up storing "apple": 2, "banana": 1, "carrot": 1
[01:24:09] <markizano> we are trying to do a rs backup, and it's unable to connect, curious if the target's DNS is resolved ...
[01:25:17] <joannac> markizano: open a MMSSUPPORT ticket
[01:26:03] <joannac> fructose_: no
[01:26:50] <joannac> fructose_: update({}, {$inc: {apple:1, banana:1})
[01:30:16] <fructose_> joannac: I need it to be a field of that document. So would it be update({}, {$inc: {items.apple:1, items.banana:1}) ?
[01:33:44] <joannac> fructose_: then your example is wrong. what do you actually want the target document to look like?
[01:34:53] <joannac> fructose_: you said "it'd end up storing "apple": 2, "banana": 1, "carrot": 1" but what do you actually want? {items: {"apple": 2, "banana": 1, "carrot": 1}} ?
[01:35:43] <joannac> sorry, to make it more clear, {_id:1, items: {"apple": 2, "banana": 1, "carrot": 1}} ?
[01:35:58] <fructose_> joannac: Right, it could have been more clear. Doesn't make it wrong
[01:36:01] <claytonzaugg> Any MeteorJS users out there? If I have an order form and I need the order number to automatically increment each new order created, how can I do that?
[01:37:35] <fructose_> joannac: But it's working, thanks
[01:38:25] <claytonzaugg> joannac, are you familiar with MeteorJS by chance and its use of Mongo?
[01:38:57] <joannac> claytonzaugg: nope sorry
[01:48:14] <claytonzaugg> Thanks for at least responding joannac
[01:52:27] <claytonzaugg> Any MeteorJS users out there? If I have an order form and I need the order number to automatically increment each new order created, how can I do that?
[02:28:24] <iio7> I have just done some testing with mongodb, disabled the daemon and then enabled it again, but now it wont start: http://pastebin.com/ux4wdjCA
[02:28:33] <iio7> The log is silent.
[02:30:19] <cheeser> start it manually using the same config file
[02:31:27] <iio7> I just did with "-vvvv". It started. Doing some JOURNAL durability "groupCommit begin", processing commit number 1025..
[02:31:34] <iio7> What does that mean?
[02:35:18] <iio7> Like this: http://pastebin.com/4ycQBn7e
[02:35:31] <iio7> Takes forever!
[02:36:16] <iio7> What is it doing?
[02:39:57] <iio7> Can't wait for that, the db is huge!
[02:45:26] <iio7> Cannot get it started.
[02:49:28] <iio7> Giving up, impossible to find any information on what is going on.
[03:28:57] <rjurney> I need to look at records in the links collection that have values other than ‘partnership’ and ‘customer’. How do I do that? This isn’t working: db.links.find( { $or: [ { type: {$ne: 'partnership' } }, { type: {$ne: 'customer'} } ] } )
[03:30:43] <rjurney> Can anyone help?
[03:31:46] <rjurney> I figured it out: db.links.find( { type: {$not: {$in: ['partnership','customer'] } } })
[03:58:51] <Boomtime> rjurney: $nin
[03:59:26] <rjurney> @Boomtime: thanks, that is better
[04:03:17] <Boomtime> for your case it's probably the same, though be aware that if $type is an array, $nin and $not:$in will produce different outcomes
[04:08:43] <Bioblazin> Awesome.
[04:09:24] <Bioblazin> First time doing mongodb, and I would like to hear a few pointed on a Schema Design. http://pastebin.com/HneDYDWK
[04:09:35] <Bioblazin> Xd Pointers*
[04:10:07] <Bioblazin> the Schema Reflects a Product API Key Storage, associated with a Person who created it.
[04:10:40] <Bioblazin> :x Is it better to generate a Associtive GUID? Or use the _id of the Entry for Searching?
[04:24:31] <Bioblaze> Anyone want to have a Discussion about Data Modelling?
[09:54:15] <Creeves> hey guys, I'm getting error code 17406 (getMore executor error due to trying to sort in ram and running out of space) and read online that puttin an index on the field sorted by should fix it
[09:55:16] <Creeves> i've tried that, but am still getting the error (http://pastebin.com/4c3kg4as)
[10:59:59] <cheeser> Creeves: aggregation or query?
[11:09:25] <Creeves> cheeser: it was a .find({_id: {$in: some_array}).sort({some_field: 1}) query, and i put an index on some_field but it still gave that error
[11:09:29] <Creeves> but I have solved it now
[11:09:39] <Creeves> by using that field instead of the array of IDs
[11:10:28] <Creeves> now it's something like find({some_field: {$gte: start_index, $lt: start_index + limit}}).sort({some_field: 1})
[11:10:30] <Creeves> which is much better
[11:47:37] <amitprakash> Hi, I am using mongodb to insert records from collection A to collection B as db.A.find(filters).sort({_id: -1}).forEach(function(row) { db.B.insert(row); });
[11:48:00] <amitprakash> However, db.B.find().count() returns a single record ( when the insert has been going on for a while.. what gives?
[14:22:25] <deathanchor> how can I hint an update?
[14:22:33] <deathanchor> do I have to use $hint : {}?
[14:27:07] <deathanchor> hmm.. appears no way: https://jira.mongodb.org/browse/SERVER-1599
[14:34:38] <amitprakash> Why does pymongo keep throwing a pymongo.errors.ServerSelectionTimeoutError: No replica set members match selector "<function any_server_selector at 0x7f5a6c05f378>"
[14:35:06] <amitprakash> This is on pymongo 3.0.3 and happens at random
[17:05:09] <parshap> How do you get the _id of a newly inserted document when using the node.js mongodb-core driver? The documentation doesn't mention anything and the result object doesn't seem to have an _id in it. http://mongodb.github.io/node-mongodb-native/core/api/Server.html#insert
[17:12:57] <StephenLynx> heh
[17:13:02] <StephenLynx> the thing is
[17:13:12] <StephenLynx> it will take the object you inserted and add the _id as a property of it.
[17:13:13] <StephenLynx> v:
[17:13:18] <StephenLynx> parshap
[17:13:40] <StephenLynx> so you have to get a reference to it before the insertion
[17:13:53] <parshap> StephenLynx: checked that too, the object does not appear to be mutated
[17:14:05] <StephenLynx> show me your code
[17:15:39] <parshap> var s = new Server()
[17:15:40] <parshap> var a = { foo: 1 }
[17:15:40] <parshap> s.insert("test.test", [a], function() { console.log(arguments) })
[17:15:57] <parshap> `a` still has no _id
[17:16:09] <StephenLynx> new Server?
[17:16:18] <StephenLynx> hold on
[17:16:23] <StephenLynx> that is not the native driver.
[17:16:50] <parshap> StephenLynx: using mongodb-core
[17:16:57] <StephenLynx> :v
[17:16:58] <StephenLynx> no
[17:17:02] <StephenLynx> you use mongodb
[17:17:05] <parshap> StephenLynx: seems to be the suggested driver to use. mongodb-native is referred to as "legacy"
[17:17:12] <StephenLynx> wot
[17:17:17] <StephenLynx> link me to that.
[17:17:29] <StephenLynx> mongodb-core is the low-level component the driver uses.
[17:17:30] <parshap> StephenLynx: mongodb - MongoDB legacy driver emulation layer on top of mongodb-core
[17:17:33] <parshap> StephenLynx: https://www.npmjs.com/package/mongodb
[17:18:01] <StephenLynx> The MongoDB driver is the high level part of the 2.0 or higher MongoDB driver and is meant for end users.
[17:18:35] <StephenLynx> https://www.npmjs.com/package/mongodb-core: Core MongoDB driver functionality, no bells and whistles and meant for integration not end applications
[17:18:44] <StephenLynx> >not end applications
[17:20:05] <parshap> StephenLynx: fwiw i'm working on a library, not an application
[17:20:20] <StephenLynx> what your library is?
[17:20:40] <parshap> StephenLynx: i wanted to use the lower level api intentionally, but i'll give mongodb-native a try
[17:21:04] <parshap> a repository pattern storage system for internal company applications
[17:21:22] <StephenLynx> repository pattern storage?
[17:22:06] <parshap> https://blog.8thlight.com/mike-ebert/2013/03/23/the-repository-pattern.html
[17:22:15] <parshap> more resources if you search
[17:22:42] <StephenLynx> so you are abstracting the database?
[19:36:14] <Bioblaze> Would anyone like to have a Discussion on Data Modeling?
[19:36:29] <StephenLynx> ok
[19:37:00] <Bioblaze> :D you do?
[19:37:21] <StephenLynx> yeah, I'm addicted to arguing or something.
[19:37:27] <Bioblaze> I recently just began working with Data Modeling, I come from a Mysql/Spreedsheet style background.
[19:37:40] <Bioblaze> Oh seems me and you will have a great friendship. LoLz
[19:38:36] <Bioblaze> When it comes with Data Modeling, its obviously diffrent from Standardized Data Association much like Table Association in Mysql.
[19:38:58] <Bioblaze> Whats the most Optimal Way to Handle Data? Should it be stored in the Data Structure of the Data Model?
[19:39:06] <Bioblaze> Or should it be stored in a Seperate Schema and Referenced?
[19:39:43] <cheeser> Lots of Randomly Capitalized words Make me Think I'm missing Something.
[19:39:52] <StephenLynx> I heard from an experienced dev that using multiple databases at the same time doesn't perform well. as in, multiple databases connected running under the same server.
[19:40:02] <Bioblaze> eh its a Issue I have :X Mentally dont mind my cap. words.
[19:40:36] <Bioblaze> I`m running 1 Database, but Several Data Schema
[19:40:51] <StephenLynx> by schema you mean a collection or a db?
[19:41:01] <Bioblaze> Collection. My apologizes.
[19:41:08] <StephenLynx> yeah, thats the usual.
[19:41:09] <Bioblaze> Not sure yet on the Terms. of Mongodb
[19:41:55] <StephenLynx> the real question one should make is to make references from a collection to another or nest the data.
[19:42:18] <Bioblaze> :X that is the exacte question I`m asking
[19:42:29] <Bioblaze> XD just wording it was hard it seems.
[19:42:33] <StephenLynx> and theres no absolute right answer to that, is depends on how you are going to query and what load you expect to handle.
[19:42:52] <StephenLynx> I usually use both of these depending on the case.
[19:43:17] <Bioblaze> Can i show you a Current Schema im working on?
[19:43:20] <StephenLynx> if the nested object would be too complex and I expect an unlimited amount of them, I go for relations.
[19:43:25] <Bioblaze> Its what made me ask in channel, :X originally.
[19:43:30] <StephenLynx> k
[19:43:33] <Bioblaze> pastebin.com/HneDYDWK
[19:43:51] <StephenLynx> I strongly suggest you don't use mongoose.
[19:44:02] <StephenLynx> not only it is extremely slow, but it doesn't have a standard behavior.
[19:44:06] <Bioblaze> Its a Product Handler for Virtual World Products. Storing the Associated Creator, and then Security Tokens for Inquires too the Server.
[19:44:15] <Bioblaze> oh.
[19:44:21] <Bioblaze> Do you have any suggestions on what I should use?
[19:44:28] <StephenLynx> a module called "mongodb".
[19:44:30] <Bioblaze> :X I`m using it based on the tutorials I`ve found.
[19:44:32] <StephenLynx> is the native node.js driver.
[19:44:44] <StephenLynx> let me show you the schema of my current project
[19:44:51] <Bioblaze> :) please and thank you ^_^
[19:45:11] <StephenLynx> https://gitlab.com/mrseth/LynxChan/blob/master/doc/Model.txt
[19:45:45] <Bioblaze> holy shit
[19:46:08] <Bioblaze> for a Forum?
[19:46:17] <StephenLynx> chan
[19:46:26] <StephenLynx> lynxhub.com
[19:46:28] <Bioblaze> for a chan? O_o like a IRC Channel?
[19:46:41] <StephenLynx> no, an imageboard, like 4chan
[19:47:03] <Bioblaze> Oh.
[19:47:05] <Bioblaze> Sweet.
[19:47:16] <Bioblaze> Thats actually really cool :X Nice job
[19:47:46] <StephenLynx> IMO, theres no point in adding schema validation if the database dont actually enforce it.
[19:47:56] <StephenLynx> is not optimized at all to perform that in application code.
[19:48:02] <StephenLynx> which is what mongoose does.
[19:48:32] <Bioblaze> ok.
[19:48:50] <StephenLynx> not to mention that mongoose uses a misguided OOP philosophy.
[19:49:26] <StephenLynx> which increases RAM consumption, since every object now packs much more than just it's data and is not how application code is meant to be used in js.
[19:49:38] <StephenLynx> but I confess I am not 100% on that.
[19:49:45] <Bioblaze> :x its fine.
[19:49:49] <Bioblaze> being passionate is important
[19:50:02] <StephenLynx> and there might be some optimization on V8 to optimize that.
[19:50:04] <Bioblaze> it creates mental boundries and structures ^_^ helps us in development.
[19:50:23] <Bioblaze> So i`m glad your sharing your passion with me :D
[19:50:44] <Bioblaze> On the note of Structure I`m reading your .txt document you posted
[19:51:09] <Bioblaze> is it better to have a Larger Model?
[19:51:17] <Bioblaze> Or is it better to have more Collections?
[19:51:24] <Bioblaze> Model = Collection*
[19:51:29] <StephenLynx> the overall size of the model is roughly the same.
[19:51:36] <StephenLynx> if you nest or reference.
[19:51:41] <StephenLynx> and as I said, depends on the case.
[19:51:52] <StephenLynx> notice that I have a separate collection for bans
[19:51:57] <StephenLynx> but filters are embedded.
[19:52:01] <Bioblaze> I have Associtive Avatars, Products, Regions, Parcels, and a Collection for Traffic more or less.
[19:52:16] <StephenLynx> it is more a matter on how you plan to query the data.
[19:52:24] <StephenLynx> for example
[19:52:32] <Bioblaze> The productSchema I showed you in that link, is ment to store security skys, and associate the product with the creator.
[19:52:56] <StephenLynx> if you have to constantly query some data from something
[19:53:11] <Bioblaze> Alot of the Data is being pushed too the Collections.
[19:53:18] <StephenLynx> if you put it into a separate collection, now you have to perform two queries to retrieve
[19:53:22] <Bioblaze> Only 3 Tables will have constant data pushed into them.
[19:53:29] <Bioblaze> And maybe 4-15 queries every hour maybe.
[19:53:41] <StephenLynx> while if you embed, you don't have to perform any aditional query for this extra data.
[19:53:49] <Bioblaze> hmm
[19:53:50] <StephenLynx> however
[19:54:13] <StephenLynx> if you have to perform complex updates and projections, embedding will put some limitations on you and the code will be more complex regardless.
[19:54:22] <StephenLynx> not to mention that documents are hard-caped at 16mb in size.
[19:54:25] <Bioblaze> I dont mind complex code.
[19:54:44] <Bioblaze> :) I`m confindent in my learning abilities :X
[19:55:12] <StephenLynx> so its really situational if you embed or not.
[19:55:37] <Bioblaze> Can i explain too you my System, and you can give me some advice on structuring/embedding?
[19:55:40] <StephenLynx> and takes some time to learn about mongo's strengths and weaknesses to be able to decide on that more correctly.
[19:55:54] <StephenLynx> k, do it and I answer later. brb
[19:55:57] <Bioblaze> kk
[20:00:39] <Derick> Bioblaze: it's not forbidden :)
[20:02:23] <Bioblaze> XD thx u Derick I just didnt wanna typoe abuncha stuff and be told "Breaking rules" XD and kicked.
[20:02:28] <Bioblaze> which does happen in dev channels alot. Lulz.
[20:03:03] <Derick> I can still kick you anyway ;-)
[20:03:11] <Bioblaze> ;-; but but *CRIES*
[20:03:18] <Bioblaze> ;-; yeas of IRC hve made me timid ;-; to kicks..
[20:04:29] <Bioblaze> So far I have about 3-5 Collections, Product, Avatar, Region, Parcel, and Traffic.
[20:04:43] <Bioblaze> Product contains information about things created by Avatar, for Security keys.
[20:05:11] <Bioblaze> Parcel is Associated to Region, and then Region is Associated in Traffic, along with Avatar associating the Avatars who have Visited.
[20:05:47] <Bioblaze> Avatar, Region, Parcel are all Found at Randomly, and then Sent to the Associated Collection.
[20:06:30] <Bioblaze> Looking at about hmm. 500-1000 calls to the Database in total per half day between all the systems.
[20:07:03] <Bioblaze> What i`m having issues with. Is my Associative thinking too Mysql, and using that in Mongodb which is obviously wrong in its attempt.
[20:07:32] <Bioblaze> So i`m looking to learn Proper Structure of a Collection, or the theory of a Proper Developed Collection structure so I can work on mine oh. Lulz.
[20:08:28] <StephenLynx> this is not a dev channel :v
[20:08:46] <Bioblaze> o.o idk. Feels like one. Lulz.
[20:08:46] <StephenLynx> i have never seen mongodb development discussion here.
[20:08:51] <Bioblaze> XD
[20:08:56] <StephenLynx> it IS the official channel though.
[20:09:05] <Bioblaze> :X
[20:09:22] <StephenLynx> and often 10gen employee provide support, if I am not mistaken.
[20:09:33] <StephenLynx> like joannac
[20:11:00] <StephenLynx> another detail about nested documents: if you ever find a situation where you don't want to restrict yourself for a single parent object, it will be harder to query and more expensive.
[20:11:14] <Bioblaze> But yea. I`m trien to figure out the proper development of these collections as of right now XD
[20:12:00] <Bioblaze> can you break that statement down alittle more for me StephenLynx
[20:12:18] <StephenLynx> on lynxchan, I have something called overboard.
[20:12:19] <Bioblaze> or give me a tech. Example
[20:12:34] <StephenLynx> it takes the latest threads from the whole site and aggregate them.
[20:12:53] <StephenLynx> doing that would be much harder if threads were stored inside the board they live.
[20:14:20] <Bioblaze> hmm
[20:14:28] <Bioblaze> So From what I`m getting right now.
[20:14:56] <Bioblaze> ProductSchema should prolly be inside of Avatar, and Parcel should be inside of Region, then I simply Associate Region to Traffic. o.o
[20:14:57] <Bioblaze> hmm
[20:15:08] <Bioblaze> I see what your getting at in terms of aggregating.
[20:15:16] <Bioblaze> Only viewable information is simply traffic really.
[20:15:22] <Bioblaze> Everything else is being pushed into the database
[20:15:36] <Bioblaze> only queried entries for viewing are Traffic. and Checking of the Product Key.
[20:15:40] <Derick> Bioblaze: you need to think not how to structure your data, but how your application uses and interacts with data - then according to *that*, you will find out what your schema should be
[20:16:39] <Bioblaze> hmm.
[20:17:14] <StephenLynx> that.
[20:17:18] <StephenLynx> is all about context.
[20:17:31] <StephenLynx> the most important thing is efficiency.
[20:17:33] <Bioblaze> Well Currently, there is only 1 Check preformed for the Security, then a Token is exchanged, then everything else from there is pushing the Current Location to the Server for Traffic nothing else actually.
[20:17:48] <Bioblaze> there is only 1 Route
[20:17:54] <Bioblaze> just Traffic.
[20:24:16] <Dizzle> This is probably a dumb question, but in the latest version of Motor, do you even need to install tornado if you intend to use asyncio?
[20:25:22] <StephenLynx> i suggest you ask in a place dedicated to motor.
[20:26:02] <Dizzle> Is there such a place? It's a mongodb project.
[20:26:23] <Zelest> o_O
[20:26:26] <Zelest> why the notice?
[20:26:27] <cheeser> probably the users mailing list where jesse will see it.
[20:26:31] <Bioblaze> @.@ noticed the channel bad user bad!
[20:26:31] <Dizzle> sorry bout the notice
[20:26:48] <Dizzle> LimeChat notices if you fat-finger shift when you hit return. :(
[20:29:34] <StephenLynx> kek
[20:29:50] <StephenLynx> even if its a mongo project, that is way too specific.
[20:30:13] <StephenLynx> you are the first guy mentioning motor or tornado in this channel I have ever seen.
[20:30:20] <StephenLynx> and I have been around for over a year now.
[20:30:41] <deathanchor> tornado isn't mongo specific.
[20:30:54] <StephenLynx> i know
[20:31:39] <Bioblaze> StephenLynx if I do a Parcels: { Name: String, Desc: String } it will create a Id inside of the Collection and inside of the Parcels Array Correct?
[20:31:53] <Bioblaze> Or do I have to specificly say _id: etc
[20:31:57] <StephenLynx> no, you dont.
[20:32:00] <StephenLynx> _id is automatic.
[20:32:15] <StephenLynx> and afaik, mandatory. but I am not 100% sure of that.
[20:32:20] <Bioblaze> so both Region, and the Array inside of Region.Parcels will both receive a ID?
[20:32:24] <StephenLynx> oh
[20:32:25] <StephenLynx> no.
[20:32:32] <cheeser> it is. you can't insert a doc without it. the db will add one if it's missing.
[20:32:34] <StephenLynx> sub documents don't get an array.
[20:32:40] <StephenLynx> an _id*-
[20:32:43] <Bioblaze> Ahhh.
[20:32:58] <Bioblaze> thank you! thats what I needed to know :X
[20:33:17] <StephenLynx> in most cases, I don't even use _id of documents, honestly.
[20:33:22] <Bioblaze> really?
[20:33:28] <Bioblaze> @.@
[20:33:29] <StephenLynx> yeah, look at my model.
[20:33:37] <StephenLynx> how often I have my own unique index.
[20:33:41] <Bioblaze> I was, :X it gave me a few Ideas. And I learned the proper structure
[20:33:45] <StephenLynx> like users have login, boards have boardUri
[20:33:46] <Bioblaze> I wish you would have that in code already
[20:33:51] <Bioblaze> so I can see the structure
[20:34:06] <StephenLynx> I do use the _id sometimes, though.
[20:34:10] <StephenLynx> like bans
[20:34:12] <StephenLynx> and captchas.
[20:34:13] <Bioblaze> ahh. yea.
[20:34:16] <Bioblaze> have too.
[20:34:35] <Bioblaze> or some sort of unqiue ID of some sort.
[20:35:07] <StephenLynx> have what in code?
[20:35:46] <Bioblaze> http://pastebin.com/jWbxy6bm this is my current data outline :X remake of Regions.
[20:35:58] <Bioblaze> o.o Figured I could store the Parcel Data in the Region Collections.
[20:36:21] <Bioblaze> Only issue I am attempting to figure out, how do Associate the Parcels with another Collection.
[20:36:24] <StephenLynx> a description of sorts would be useful.
[20:36:48] <StephenLynx> and then you have some [integer] doing bugger all
[20:36:53] <lrvick> Can anyone think of a way to pipe a password to a mongo cli string in such a way that it does not show up in ps, etc?
[20:36:53] <Bioblaze> Xd what do you mean? Description of each Piece or the total amount of the collection explaining what its for.
[20:37:08] <StephenLynx> a description of the field.
[20:37:11] <Bioblaze> I wasnt sure if I should put that as a enum or a integer
[20:37:18] <Bioblaze> i receive a integer from the Server for it.
[20:37:23] <StephenLynx> you don't have enums on mongo.
[20:37:28] <Bioblaze> kk hold on StephenLynx
[20:37:29] <StephenLynx> neither integers.
[20:37:34] <Bioblaze> O_o
[20:37:35] <Bioblaze> huh?
[20:37:40] <Bioblaze> how do you store numerical information?
[20:37:43] <StephenLynx> doubles.
[20:37:52] <Bioblaze> what about Vectors?
[20:37:53] <StephenLynx> thats why I use (Number)
[20:37:55] <Bioblaze> 2 or 3 point Vectors?
[20:38:06] <StephenLynx> you have arrays that are actually objects.
[20:38:09] <Derick> StephenLynx: you do have integers in MongoDB
[20:38:14] <StephenLynx> ah
[20:38:16] <Derick> both int32 and int64
[20:38:16] <StephenLynx> indeed.
[20:38:18] <Bioblaze> @.@ I thought they did @.@
[20:38:21] <Bioblaze> I was like
[20:38:23] <Bioblaze> god i feel stupi
[20:38:28] <Bioblaze> i coulda sworn i read it somewher
[20:38:29] <Bioblaze> eLoLz
[20:38:29] <StephenLynx> I was thinking of regular json.
[20:38:34] <Bioblaze> XD ahh.
[20:38:57] <StephenLynx> you see, theres a difference between json and bson.
[20:39:09] <StephenLynx> bson is what mongo actually uses and is a super set of json.
[20:41:01] <StephenLynx> and for location, mongo has geolocation types.
[20:41:08] <StephenLynx> so you don't have to roll with your own thing.
[20:42:02] <Derick> GeoJSON: http://docs.mongodb.org/manual/reference/geojson/
[20:42:35] <edrocks> can you use multiple position operators to delete fields from multiple arrays?(not nested just several at the top level)
[20:42:57] <StephenLynx> never tried, but I think so.
[20:43:07] <StephenLynx> since you use $ in relation to the array.
[20:43:34] <Bioblaze> http://pastebin.com/ZfaHJPrX
[20:43:40] <Bioblaze> I commented more data on the structure
[20:44:44] <StephenLynx> so you have an array named "Name" which contains objects that have a field called "Name"?
[20:44:52] <StephenLynx> why some fields start with upper case and some don't?
[20:45:01] <edrocks> Bioblaze: whats the parcel data?
[20:46:03] <Bioblaze> Parcel Data is made up of "Name, UUID, Description, Size" in that order.
[20:46:22] <Bioblaze> I`m just not sure if I should put more Data into it, since "Names, Descriptions" Changed constantly.
[20:46:40] <Bioblaze> like 1 Parcel with a UUID of 0000-0000-000-00000
[20:46:50] <Bioblaze> can have 50 names over the course of 30days.
[20:46:53] <Bioblaze> same with scriptions
[20:47:02] <Bioblaze> but the UUID will nvr change as long as the Parcel`s Size is not edited.
[20:47:20] <Bioblaze> UUID is more of less the unqiue ID of the Parcel.
[20:47:37] <edrocks> do you mean parcel like a package/shipment?
[20:47:57] <Bioblaze> no a 3 Dimensional Vector Location.
[20:48:05] <Bioblaze> think of a Virtual 3d Box, and everything inside of that is a Parcel.
[20:48:30] <edrocks> ahh. thought you were doing something related to me
[20:48:47] <Bioblaze> XD i`ve done shipping, and business transaction/inventory managment
[20:48:53] <edrocks> why don't you keep a history of names and descriptions?
[20:48:54] <Bioblaze> but all in mysql & php :X
[20:49:12] <Bioblaze> Because first time Developing in such a new Databasing Language XD
[20:49:17] <Bioblaze> not sure how to store it correctly.
[21:28:50] <Derick> Hey! We're running a driver survey at MongoDB. If you have a few minutes, please fill in https://www.surveymonkey.com/r/52Z9SXF
[21:33:54] <Derick> cheeser: for a moment I thought your nick was "cheater"
[21:34:26] <Boomtime> question 2 should be multi-choice
[21:34:37] <Derick> i didn't make it :-)
[21:34:43] <Boomtime> heh
[21:34:49] <Boomtime> then pass it on!
[21:34:59] <Boomtime> :p
[21:35:15] <cheeser> "can only take survey once..."
[21:35:26] <Derick> haha
[21:35:36] <Derick> once per browser, or when you clear cookies ;-)
[21:40:26] <Bioblaze> Does anyone have a bucketing example? In a Collections Structure?
[21:41:59] <Bioblaze> what do you mean by customer?
[21:42:09] <Bioblaze> o.o a developer using mongodb?
[21:42:10] <Bioblaze> or?
[21:43:48] <Derick> you give us money
[21:43:58] <Derick> that's a customer :)
[21:44:08] <Derick> hey ernie
[21:44:25] <ehershey> hi
[21:44:46] <ehershey> I accidentally left
[21:44:48] <ehershey> now I'm back
[21:44:54] <Derick> welcome back! :)
[21:44:55] <Bioblaze> ahhh XD
[21:45:00] <ehershey> thanks!
[21:45:13] <Bioblaze> I r screweded up :X my bad
[21:45:38] <Derick> ehershey: should we still have 2.6 in the topic?
[21:58:46] <ehershey> I think until 3.2 comes out
[21:58:52] <ehershey> but maybe no
[21:59:06] <ehershey> I sure wouldn't run 2.6 any more
[21:59:11] <cheeser> as long as it's a supported branch, i'd think.
[22:02:16] <joannac> 2.6 is still supported, why should it not be in the topic?
[22:07:52] <ehershey> it looks like a choice
[22:07:54] <ehershey> choices are confusing
[22:23:48] <rangergord> Hi. I'm looking at running Mongo on an ARM embedded device (relatively beefy, 800MHz and 512MB RAM). The page http://docs.mongodb.org/manual/administration/production-notes/ seems to strongly indicate you need ext4 or XFS as a filesystem. What issues can I expect to have if I try to run it on a jffs2 filesystem?
[22:24:56] <rangergord> the page also recommends Linux 2.6.36 or later. My system is at 2.6.35, what unpleasantness can I look forward to?
[22:34:32] <happyken> rangergord It just means they haven't tested jffs2 file system. They did tested ext3 and ext3 doesn't have fsallocate system call. It has to do padding to allocate space which might take couple of seconds. So they don't recommend ext3. So jffs2 file system might work fine for you.
[22:36:03] <happyken> rangergord It should work for you even with old kernel but might have performance impact. You can try and post your results for the community.
[22:36:21] <happyken> I have mongo db with multiple databases having common prefix. I want to have common account credentials for dbs having common prefix. Is this use case possible by any chance ?
[22:37:44] <rangergord> thanks
[22:40:06] <inorganik> hi there, was hoping someone might be able to give me some mongodb schema advise
[22:40:20] <inorganik> *advice
[22:47:26] <inorganik> anyone got a sec?
[22:49:37] <steffan> inorganik - if you provide a brief description of your problem it may encourage feedback
[22:53:53] <inorganik> thanks steffan
[22:54:46] <inorganik> I want to store a collection of podcast episodes, but within that user interactions with episodes... so I envision an episodes collection with array of users
[22:55:07] <inorganik> but within each user an array of interactions - mostly comments
[22:55:19] <inorganik> this means arrays within arrays, i'm not sure its the best way
[22:55:48] <steffan> It's not necessarily a bad design, but it would depend on how large you expect the arrays to get
[22:56:20] <steffan> Also whether you're using MMapV1 vs. WiredTiger
[22:56:28] <inorganik> I'm having trouble writing a query to upsert a user interaction
[22:56:41] <inorganik> don't know what you mean by mmapvi vs wiredtiger
[22:56:56] <inorganik> i'm using compose.io for mongo hosting
[22:56:58] <steffan> The storage engine - Mongodb 3.0+ supports pluggable storage engines
[22:57:11] <inorganik> ah. gotcha. compose is 2.6
[22:58:19] <steffan> Okay. So you're using the MMapV1 storage engine. MongoDB will have to move documents once they grow past their allocation, which will affect performance slightly.
[22:58:33] <steffan> What problems are you having writing the query?
[22:59:23] <inorganik> so, for instance a new comment by a new user... is it possible to write an upsert
[23:00:31] <inorganik> i've found you can't do $addToSet within an $addToSet
[23:00:36] <inorganik> which makes sense
[23:00:55] <inorganik> but i don't want to add a dupe user - all interactions by that user should be under that user
[23:03:09] <steffan> Could you do that as two separate operations? The creation of a new user should happen much less frequently than creation of an interaction
[23:03:33] <inorganik> yea, good idea
[23:06:30] <steffan> Do the users have a relationship with the episodes themselves, or only if they create comments / interactions?
[23:07:03] <steffan> If that is the case, then it probably supports moving user metadata to its own collection and storing an array of comments+user display names with the episode
[23:09:26] <inorganik> yea, i'm think of the latter
[23:09:38] <inorganik> i'm writing some queries to give you an idea
[23:11:22] <inorganik> so maybe: db.episodes.update({title: 'some episode'},{$addToSet: {users: { username:inorganik }}});
[23:11:29] <inorganik> then db.episodes.update({title: 'some episode', users:{ $elemMatch: { username:inorganik }},{ 'users.$': { $addToSet: { events: { type: 'comment', comment: 'some comment'}}}})
[23:11:48] <inorganik> does that look right?
[23:12:56] <inorganik> sheesh how do you stop these "has quit" messages
[23:13:53] <Derick> depends on your client
[23:26:15] <meye1677> I have been getting gpg errors when installing mongodb-org on ubuntu trusty running the commands in the docs http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/
[23:27:51] <meye1677> I’ve had those commands in a script and successfully install every day with the same script—I started getting the gpg errors today.
[23:39:01] <steffan> inorganik: Yes, that approach could work
[23:44:33] <Bioblaze> Should I store Ownership of a Product within the Products Schema?? Or within the Account Schema?
[23:45:29] <Bioblaze> Like Product.Accounts or Account.Products?
[23:45:43] <Bioblaze> or should I store Association between both?
[23:53:59] <steffan> Bioblaze: Consider the relative quantities. What are the numbers of products & accounts?
[23:54:50] <Bioblaze> umm Products could be maybe few 100 per Account, but could be 1000s of Owners per Product.
[23:56:25] <Bioblaze> right now the Accounts Table consists of Name, broken down virtually into First/Last and a UUID along with a creation date. So almost no information.
[23:57:31] <Bioblaze> Prolly should just store the information in the Accounts for the Products they own. Since the 16mb limit
[23:59:10] <steffan> Yes, 100 products isn't a big deal to store in an account