[08:07:29] <coRz> so whats the solution for that? replacement ?
[08:07:32] <rspijker> so, either make sure dots never appear in field names, or make a little wrapper that replaces dots in field names with some unicode character not likely to show up in your actual content and replace it back on read
[09:00:54] <Nopik_> hi, i'm experiencing some weird situation with mongo, after inserting the record, i do query for it, and it is missing, although if i retry query e.g. second later, it gets returned. it happens both on my devel machine (just single mongod) as in production (where there are 3 servers + sharding). writes are done with { w: 'majority' }, although if I do { w: 3
[09:00:54] <Nopik_> } it works. It is not a replication lag, as I send my queries to master. It is 2.4, though, not 2.6 yet. Have anyone seen something similar?
[09:51:34] <Nodex> children like you crack me up, you seem to think that help is a god given right
[09:55:10] <Industrial> Hi. I have a Java/Python/Ruby/Perl/Lua/whateveryounameit problem with mongodb
[09:55:22] <Industrial> I'm calling a remove method but I dont see collections removed
[09:56:06] <Industrial> for clarity and because people are generally unable to read this one language called coffeescript, I've taken the liberty of converting all code I write every day into something you might understand
[10:00:05] <Industrial> (The annoying thing about this all is that probably I'm not going to get any help anymore because of my outburst earlier, but I was the one asking a question, the one getting a "NO I DONT LIKE WHAT YOU LIKE SO UR STUPID" in his face)
[10:00:06] <Nodex> children like you crack me up, you seem to think that help is a god given right and that everyone should bend to you to help.
[10:06:33] <Industrial> well I've got some things to think about, maybe one for you could be to think about wether the best reply to any question asked wether you agree with the philosophical backings of the programming language involved with a question on IRC would be "meet my demands or receive no help" or not.
[10:07:13] <Industrial> I'll stop wasting my time now and actually fix the thing.
[10:11:04] <Nodex> LOL this is why you're childish - because you still seem to want to blame someone else because you cannot be bothered to compile coffee script into a language that many more people in this channel understand. I have been in this channel for the better part of 3 years and I have NEVER seen coffee script mentioned once by any of the regulars so I asked you to compile it down to HELP YOU OUT.
[10:11:04] <Nodex> Your chioldish attitude immediately saw it as an attack on your beloved language and you went on a nerd rage. Perhaps if you had thought before you typed you would have an answer by now
[10:11:50] <Nodex> Secondly, abusing people is NOT the way to get help.
[10:15:21] <Industrial> I actually spent time thinking about converting it to js first before I asked. I don't blame anyone for my inability to convert CS to JS. I am blaming you for the type of response you gave me that is by now so typical of JS users that dislike coffeescript. It's not the first nor last time this will happpen but I opted to go for the CS gist
[10:15:44] <Industrial> what if i've asked the question with a python API?
[10:16:06] <Industrial> I would have been fine with receiving no help because maybe you don't have experience with the python API
[10:16:40] <Industrial> the same goes for coffeescript, but the usual response you get from people is 'hey its somewhat similat to what i.. oh no.. coffeescript..."
[10:17:31] <Industrial> It's also not my beloved language, because I do this at work. I prefer LiveScript if you have to know
[10:18:47] <Industrial> I seem to be fighting for equality.
[10:19:54] <Nodex> I personaly don;t know python but many people in here do. I am not debating languages with you, I have better things to do. You don't seem to want to do what's needed to get help so either wait for someone who knows CS or compile it / write it in a more sparse language that more people know. Else you probably won't get help
[10:26:28] <Industrial> Nodex: I've since pasted the js output
[11:08:09] <mischat> yay to RC1 ... there is a bug fix in there which is stopping us upgrading to 2.6.0 ... I wonder how many more release candidates there will be
[11:30:10] <daslicht> wghen using mongo native i get results after inserting an item like this:
[11:30:10] <daslicht> [ { content: 'click to edit',
[12:07:59] <Gr1> The amount of RAM available is sufficient to fit the index and data
[12:13:59] <Gr1> Any help/pointers on what should I be looking?
[13:24:27] <AlexejK> Gr1: Is it the same type of query that is slow?
[13:26:20] <michaelchum> Hi, I made a new server with mongod --syncdelay 0, I am inserting 30 million documents with pymongo but it going exponentially slow, the insertion pauses (no CPU usage) every 10 minutes before inserting for 30 second, the pauses grow longer and longer
[13:26:45] <michaelchum> My insertion script has been runnin 4 days now, it's just going slower and slower any ideas?
[13:27:25] <cheeser> 4 days seems a tad excessive. :)
[13:27:30] <rspijker> michaelchum: flushes to disk?
[13:27:51] <cheeser> is there an index on the collection (beside the _id index?)
[13:29:40] <michaelchum> Nope, no indexing inside my script!
[13:31:00] <michaelchum> rspijker: I was looking into flushing and fsync() but I don't really understand how it works and during the pauses, there is no CPU usage nor Hard disk writing
[13:31:22] <michaelchum> cheeser: yeah it's been a long long run : /
[13:32:07] <cheeser> have you considered using mongoimport?
[13:33:02] <rspijker> oh, wait, syncdelay 0 means that files aren’t synced to disk
[13:34:09] <michaelchum> cheeser: You mean using the terminal command mongoimport to import CSV/JSON files? I need to do some computations in Python before insertion
[13:34:09] <rspijker> so… what’s the memory footprint of this thing?
[13:37:30] <rspijker> yeah, so that’s going to run into issues...
[13:38:01] <rspijker> what your mongod is doing is storing as much as possible on RAM. When that’s full it needs to sync to disk and will do so quite aggresively. This is most likely causing the delays
[13:38:16] <rspijker> although it is weird that you;re not seeing any disk activity during that time.. how are you checking that exactly?
[13:40:02] <michaelchum> Thanks guys! I'll try taking out --syncdelay 0 although I had the same issue last week, and read somewhere on StackOverflow that --syncdelay 0 would fix it but it seems to be getting worse -.-'
[13:40:19] <michaelchum> But thank you so much rspijker and cheeser, I really appreciate :)
[13:40:22] <rspijker> there’s really no reason to use syncdelay unless there are some very specific circumstances
[14:11:13] <rspijker> and the layout of the partitions. If they are all on the same drive then it might be a little crappier… But nothing horrible, I’d imagine
[14:11:29] <rspijker> there is no penalty to using directoryperdb afaik
[14:11:36] <kas84> I am concerned about adding more ebs to my amazon ec2 machine
[14:25:39] <ELFrederich> hey guys... curious what kind of API mongodb has underneith. Is it as simple to use as Redis where I can use /usr/bin/nc to communicate with it?
[14:26:39] <JT-EC> Should mongo 2.6.x install headers and lib files? I seem to be missing a huge number of files trying to build it the same way that worked for 2.4.
[14:27:59] <og01_> ELFrederich: perhaps your looking for the wire protocol? http://docs.mongodb.org/meta-driver/latest/legacy/mongodb-wire-protocol/
[14:28:47] <ELFrederich> og01_, yeah... we need to support archaic languages like TCL
[14:32:29] <user55> it's kind of a knowledge system database
[14:32:46] <user55> and it's going to be very complex
[14:34:13] <rspijker> well… you could do chunking. As in have a tags collections where the actual unique tags live. Then have a tagChunks collection which refer to the tags by _id and each of them can have a part of the itemList. Then you need to ensure in your application layer that each chunk will stay below the 16MB limit
[14:36:32] <user55> so a Tag, Item and Relation will be separated doduments?
[14:43:42] <rspijker_> but instead of having a single embeded array on the Tag document (item would work exactly the same way), the array is split over several documents each referring to the tag document
[14:45:49] <user55> then this might be a more suitable solution for us on a large scale?
[14:47:47] <Darkwater> I want to store quests in a collection; each quest has multiple objectives. Should I just put the objectives in an array in the quest document or is there something better I can do?
[14:55:06] <Nodex> Darkwater : it's hard to know what your usecase is, so people saying it's fine really won't help you
[14:55:43] <Darkwater> Nodex: I just need to store and retrieve quests
[14:55:51] <rspijker> if you want to use the objectives outside of a quest scenario, it might be usefull to have them stored separately from that quest. Bit realistically, will you ever do that? I think not
[14:58:01] <rspijker> true Nodex, but I think for 99% of all people this will work. The 1% can come back if they actually run into a problem. I prefer that over having to explain every little detail or ask about every little detail before giving an answer. It’s a choice :)
[14:58:33] <Nodex> I find it better to educate people the reasons then perhaps next time they can answer themselves of help others :)
[14:58:50] <Nodex> Darkwater : because documents have a 16mb limit (currently)
[15:01:31] <rspijker> certainly something to consider. And I do tend to be a bit more ‘explaining’ on questions that I find interesting (no offense Darkwater, just because I don’t find it interesting doesn’t mean it’s not a valid question)
[16:13:32] <shesek> Is there any cost incurred of storing large subdocuments, versus storing them as completely separate documents on another collection?
[16:39:48] <shesek> Nodex, if I load the parent document without the subdocument (by specifying a list of fields), will there by any performance penalty from the existence of a large subdocument?
[16:53:20] <shoshy> question , the involves mongodb... i hope someone can help. I'm using the bitnami AMI with mongo on, tried to do "mongo admin -u admin -p bitnami" (which is the default according to http://wiki.bitnami.com/Components/mongoDB#How_to_change_the_MongoDB_root_password.3f) and i get auth faild. I also tried resetting the password by modifing mongodb.conf and restarting the server and following instructions. Still can't login.
[16:53:39] <shoshy> It's a cryout for help basically as this isn't bitnami.. .but maybe someone has been in my spot before.
[17:00:01] <inad922> How can I indicate the total number of entries in datatables if I get pages via ajax calls?
[17:01:47] <inad922> How can I get the fields on which I have an index in mongoalchemy?
[17:06:50] <Lawhater> Hello, if I have a DocumentField.. but I want multiple DOcuments.. how do I type that in the terminal? http://pastebin.com/dG8rxiL3
[17:07:10] <Lawhater> I have options = db.DocumentField(Option) but there will be multiple options.. :S
[17:19:02] <shesek> When an upsert results in an update to an existing document, is there any way to get the ID of that document?
[17:34:10] <daslicht> is there a way to generate objectd (_id) in teh browser with js ?
[17:38:06] <daslicht> ok i obey, i poll the server
[18:00:27] <insanidade> quick question: I have a simple flask-mongoengine app with two models (A and B, where A has many B's and B has a reference to A through ReferenceField). I created a sample .js file so that I could insert some testing data for both collections in mongodb. The problem is that it looks like that relationship between both models (collections A and B in mongodb) do not exist. Is that the expected behavior?
[18:26:12] <linojon> hi, using mongo_mapper, if i subsclass a model, is there a way to store the subclass items in separate collection from the parent ones?
[18:26:36] <styles> How can I determine Mongos performance? If it's pulling from disk a lot etc.. ?
[18:31:07] <joshua> Forgot about the logs, but I don't think that would have a lot of impact on query performance.
[18:31:31] <joshua> Best way to track everything is start using MMS
[18:38:25] <linojon> wrt my question, i tried set_collection_name on the subclass but gets an unexpected error
[18:38:48] <saml> pymongo.MongoClient(uri, w=1, j=True) I have this. and writes ton of data every 10 minutes. during writes, some queries return empty. why?
[18:48:41] <Nodex> perhaps you have a disk error and the jounral is erroring or timing out?
[18:52:43] <arghav> So, I got this error "Btree::insert: key too large to index" and the entire document disappeared. Is that weird?
[18:53:06] <arghav> I upgraded mongo from 2.4 to 2.6
[19:00:04] <arghav> But I wasn't expecting mongo would just give up the data just because indexing failed. :(
[19:00:35] <saml> Nodex, no.. it's very consistent
[19:01:04] <saml> another thing i notice is whenever that script runs (every 10 minutes), so many connections are open from other members of replicaset
[19:09:29] <Darkwater> I want to change a string in an object in an array in a document, what's the best way to do that?
[20:25:30] <cozby> I have a replica set config, when I do that, I take it my primary will change?
[20:25:42] <Derick> that's possible if you're doing that for the primary node
[20:26:07] <Derick> if this is a production environment, you should step the primary down first before you modify the config, but only after you've udpated for all the secondaries first
[20:57:47] <saml> for (var k in stuff) { collection.update({_id: k}, stuff[k]); }
[20:59:25] <saml> update parameter of update function must be a document? can it be a function?
[21:03:19] <cmendes0101|> can't you do an update with a where that covers that?
[21:03:51] <cmendes0101|> or is that a doc with id1,id2 being subdocs?
[22:36:30] <ac360> Can anyone recommend the best way to save long text (i.e., product decsriptions) in a mongoDB database? I'm using the MEAN stack with Mongoose, and I would like to preserve line breaks if possible...