[00:40:23] <Boomtime> _id is just a field like any other, you can put whatever you want there - including a simple number
[00:40:45] <tejasmanohar> oh i see, just override it rather than have mongo generate one for you
[00:40:56] <Boomtime> alternatively, if you really really want ObjectID as the type, the you can generate your own - i recommend following the format as specified in the above link though
[00:41:18] <tejasmanohar> right so not a 0 -> 1 -> 2 -> 3 etc model like say postgresql does it
[00:41:31] <tejasmanohar> so there's no such thing as an auto-incrementing value in mongo? no way to do that easily?
[00:42:13] <Boomtime> no, the only value the server will generate for you is the _id as an ObjectID, though most drivers will detect that missing and insert it themselves before it even gets to the server
[01:09:52] <tejasmanohar> trying to gauge whether i should store the data in mongodb or static json file that's read into memory by my app at start
[01:09:55] <tejasmanohar> it's all static Boomtime
[01:10:26] <tejasmanohar> structure is roughly like this https://gist.github.com/tejasmanohar/aed1e9cc340cc0544cdb but maybe ~500k objects in the array
[01:10:35] <Boomtime> how big is it? it might just come down to convenience
[01:12:05] <tejasmanohar> 6 1-2 digit numbers in the array, position is 1-500k, batch is 1-10, stack is A-J String (more like character), line is A-e string (character)
[01:12:14] <tejasmanohar> but yeah nvm position is number from 1-1k
[01:12:25] <tejasmanohar> but yeah not _much_ data i suppose, not too good at size estimation
[01:16:08] <Boomtime> but if you have a mongo shell nearby - you can make up one 'document' (one entry from the data array) and ask mongo shell what it's size would be in bson
[01:16:10] <tejasmanohar> i wonder how much memory that'd take up hmm
[04:38:35] <Freman> someone so kindly told me how to get the size of a document... but I forgot and I'm only just getting around to 'fixing' the 'issue' that required the knowledge... Can anyone please jog my memory?
[09:45:27] <pehlert> Hey folks. Is there anything like a $setOnUpdate operator, similar to $setOnInsert to set a property if the document has changed during an upsert operation?
[09:46:54] <Zelest> Derick, oh, what's the difference? :o
[09:54:18] <Derick> Zelest: new APIs, leaner driver, to be used with a PHP library on top
[09:55:37] <Zelest> Derick, Ah, how much effort does it require from the developers to modify the old code?
[09:55:45] <Zelest> As in, will it be compatible with MongoDriver ?
[09:57:44] <Derick> nope, it's not compatible (on purpose)
[15:14:31] <evgeniuz> I understand that if any two servers in one shard is down, then some of them becomes primary, at least one config is intact, so it becomes primary config as well and everything is ok
[15:15:21] <evgeniuz> and even if one shard is totally down: config is present in another shard too, so that becomes primary and single shard still functional
[15:26:15] <deathanchor> evgeniuz: there is nothing wrong with it. just a slightly more complex setup. We used to have our configs on the same host as some replmembers, we eventually split it out just for ease of setup
[15:26:29] <deathanchor> we use m1.small aws instances.
[16:09:08] <ogoffart> Hi, i would like to create a compilation_commands.json for mongodb to be used with the clang tools.
[16:09:14] <ogoffart> by googling i saw there is a file site_scons/site_tools/compilation_db.py
[16:09:17] <ogoffart> but i don't understand how it is supposed to be used. Anyone can help me?
[16:26:56] <ogoffart> (and btw, i tried do build mongo db with a git clone with --depth 1, but this failed because of some version check)
[19:40:31] <jjulian> hey does anyone know how / why even with --disable-warnings-as-errors the build is failing for a warning? im trying to build mongo 3.2 with scons on a freebsd 9.2
[20:43:59] <jjulian> fun fact, i played around with the SConstructs file and now it seems to compile BUT now -Werror is added and it does not fail anymore. thats weird
[20:58:25] <jjulian> in fact on freebsd adding -Werror stops cancelling on warnings
[20:58:32] <jjulian> so it seems the other way around
[21:07:52] <jjulian> im sorry that was wrong. it was just no cache, i thought it came further in compiling but did not. -Werror also just changes warnings into errors
[21:26:59] <codecab> are there any limitations in terms of file size of the dumps when using mongorestore?
[21:27:35] <codecab> to be specific, the dump file in question is about 2 mb
[22:46:21] <codecab> yes i'm having trouble restoring my database
[22:47:39] <codecab> i'm trying to migrate from meteor.com to modulus.io and can't figure out what i'm doing wrong
[22:48:51] <codecab> i used mongodump to create a dump from the database provided by meteor.com
[22:49:27] <codecab> but when i try to upload it to modulus.io, parts of my data get lost
[22:51:03] <codecab> at first i thought its just one collection that is affected, but i just found another error in my data so my guess is i'm doing something fundamentally wrong
[23:16:59] <StephenLynx> because the software is a web back-end
[23:17:03] <StephenLynx> so you dont run to run as root
[23:17:27] <StephenLynx> and personally I dont like to run it as an admin user either
[23:17:54] <StephenLynx> so what I told him I do is to have a directory which both the user that runs the software and the admin can interact with by using group permissions.
[23:18:32] <StephenLynx> so he screwed with permissions and broke in a way you could TELL the system to start the software but it wouldn't actually execute the executable.
[23:19:21] <StephenLynx> oh, and he didnt realized immediately the server wasnt running.
[23:19:46] <StephenLynx> I think I spent at least two hours trying to figure stuff out
[23:20:02] <StephenLynx> because he told me the server was running, I thought he couldnt connect on localhost
[23:20:19] <StephenLynx> then an hour later I as for a ss and the server is not running
[23:21:42] <codecab> that was the moment u wanted to scrag him gently?
[23:21:53] <StephenLynx> no, I wanted to kick his nuts