[00:03:59] <joannac> Waheedi: basically, what happens if stuff goes wrong? don't forget if your storage dies you need to 1. get some more 2. restore from backup 3. catch up from oplog
[00:04:33] <joannac> network problems might not be resolved within 30 mins
[00:05:13] <joannac> pick a number, make your decisions
[00:07:03] <joannac> oh, one more thing. oplog window also restricts how long it takes to do a full sync
[00:07:04] <Waheedi> i just went through a tough case joannac i had three nodes one primary another sec and arbt. the primary node went down and the secondary was elected. the secondary(elected primary) have not catch up with the primary for a long time it was almost a month old compared to the old primary. (my mistake didn't monitor replication lag) now when i restarted the old primary it started giving the fatal state
[07:20:02] <Draiden> Hello, I've got an issue with Node.js and Mongodb, when I initialize Mongodb and do a fetch for all data (only 2 documents) in a collection it freezes every 5 requests, is anyone familiar with this?
[07:24:42] <Draiden> hm, after benchmarking a bit futher it seems that it's in the randomizer I am applying to the data...
[07:24:58] <afroradiohead> alrighty, I asked this question to one of my co-workers who apparently knows his stuff about databases.. but I really want more opinions
[07:25:12] <afroradiohead> would you guys prefer to use a nosql database over a sql database anytime?
[07:26:14] <afroradiohead> or moreso... is it possible to have a big tech website, and I mean big like facebook/amazon with just mongo? (theoretically of ccourse)
[07:30:41] <Draiden> I think that depends on your data wishes, what kind of data do you want to store (I am not a nosql guru)
[07:31:57] <afroradiohead> right, if you're not storing relational data I'm assuming
[07:33:53] <Draiden> yes, so articles and such would be easy
[07:35:36] <Draiden> but storing user related data all in one document would make it less easy to re-use with other data. For exmaple, a user likes an article, you would store that like, in a relational database, in another table with the userId
[07:36:29] <afroradiohead> right, a userid_to_article type table right?
[07:36:45] <Draiden> in a nosql you could save it in key: array setup with some additional information but in this case it would "stick" to that user, and it is the question whether that's a problem
[07:45:14] <Draiden> I don't know whether that can immediately solve your problems. I think it really depends on what you want to do with the data to go nosql all the way. another advantage would be speed
[07:45:57] <Draiden> many nosql setups are used as a messaging queue at speeds MySQL cannot easily handle
[07:46:16] <Draiden> and at the end of that queue there could be a sql database storing them for easier access
[09:56:52] <iksik> any robomongo users here? i'm wondering what's the deal with 'copy collection to database' functionallity... it seems it doesn't work 99 of 100 times :|
[17:21:16] <MacWinner> so i'm storing some PDFs in my gridfs, and am rendering out the PDF into png pages.. any suggestions on how to store the pages in gridfs as well? I was thinking of just storing metadata about slidecount into main PDF.. then storing each slide as "pdf_md5-slide-X"
[17:21:21] <MacWinner> I guess I could also just store an array of md5 hashes for each slide into the metadata of the PDF as well..
[18:46:05] <laurensvanpoucke> when I populate after a query. I want to populate 'userId placeId' so 2 fields, but at userId I want to exclude password, how cna I do that ?
[19:27:11] <IvailoStoianov> hey guys, any idea how can I make the int type accept numbers like 08, instead auto making them for example to 8
[19:28:06] <preaction> 08 is not a number. either that's a string "08" or it's an octal, which doesn't have "8" as a digit
[19:28:31] <preaction> if you want leading zeros, you want a string
[20:49:34] <matt17> Hi, I have a question. Without running `mongod`, can I initialize a mongodb database in `/data/db`
[20:54:57] <voidDotClass> If you're querying to find a single record, you would do db.bla.find({foo: "bar"})
[20:55:07] <voidDotClass> what if you wanted to find multiple items, could you pass in an array?