[03:06:11] <rajat_> I need help with an aggregation , query : http://pastebin.com/sFuDZjpJ. I am getting this error "SyntaxError: Unexpected token : " Please help P.S. i am new with mongodb
[03:06:32] <joannac> rajat_: what have you tried to debug so far?
[03:07:33] <rajat_> i have tried to run query individually, nd it'w working but here it is showing me this error .
[03:07:53] <Boomtime> not mongodb, the problem is it isn't valid JSON
[03:18:19] <Boomtime> the trouble rajat_ is the two later examples you've provided contain valid JSON, where-as the example you provided at first contains, quite basic, syntax errors.. which i pointed out
[09:51:20] <lqez> If you're using WT, then set http://docs.mongodb.org/manual/reference/configuration-options/#storage.wiredTiger.engineConfig.cacheSizeGB
[09:51:25] <kas84> I have this setup in my mongod.conf wiredTiger.engineConfig.cacheSizeGB: 1
[09:51:38] <kas84> but it was using 1.2GB when it was killed
[09:52:04] <lqez> are you using a configuration file for it?
[15:34:24] <saml> oplog probably gives all that you want to tail
[15:35:26] <csd_> saml: I have a query that I basically want to create a listener for. It's basically like, give me the result where attr is smallest. And so listener would then let me know immediately when this changes
[15:35:48] <saml> i don't understand. query = find ?
[15:37:38] <saml> you can tail oplog and create minheap?
[15:37:57] <csd_> oh i didnt realize oplog was tailable
[15:38:22] <saml> actually, doesn't have to be heap. in your script, you'll store an _id and attr. and it tails oplog. for updates or removes, compare attr.. and update _id and attr accordingly
[15:41:01] <csd_> the find() is working over a set of tasks that have a time attribute for when they need to be executed and another attribute saying if the task is in process / completed. so it might be that the task with the nearest time isn't ready for execution yet, so youd have to wait . but during that waiting period, a new task with a smaller time could be added, and that would have to be executed first
[15:41:38] <csd_> and so for that id want the listener
[15:57:18] <csd_> saml: i think i see how to make what you linked work. thanks
[17:47:34] <rajat_> can these both queries can be merged in the following way http://pastebin.com/sMWQSbhv and http://pastebin.com/7Hn1A5FP and my solution is http://pastebin.com/tUzVEreL please help
[18:11:45] <symbol> I'm a bit surprised by the lack of blog presence mongodb has.
[18:12:44] <StephenLynx> srs people doing srs biznis
[18:13:23] <symbol> haha sure - I'm just tired of seeing the first result on google being that "Why you should never us MongoDB" post
[18:14:09] <StephenLynx> thats when FOSS original mentality kicks in
[18:14:20] <StephenLynx> FOSS don't need people, people need FOSS.
[18:14:41] <StephenLynx> if one just see a random blog post and decides without concrete arguments, its their loss.
[18:14:44] <GothAlice> symbol: Actually, some of the largest names in IT blog heavily about it.
[18:15:20] <GothAlice> https://blog.serverdensity.com/does-everyone-hate-mongodb/ < a good article about other articles, and the SD guys have many other great articles, too.
[18:19:56] <StephenLynx> not to mention commercialized FOSS, like red hat.
[18:20:03] <GothAlice> FOSS is a value-add for business due to the ability for improvements to be contributed at little cost (code review time, basically,) and community recognition.
[18:20:04] <Spec> of course, my "vast majority" of a small subset of code isn't saying much :P
[18:21:24] <symbol> I love hearing about companies that pay devs to work on FOSS (now that I know the correct definition)
[18:22:47] <GothAlice> Our philosophy at work: if it's not business critical, open it up. The secret is not about the bits, it's about how the bits are specifically put together.
[18:27:10] <GothAlice> For example: a distributed MongoDB-based RPC system is nifty and all, but open-sourcing it reveals little about the things we're using it for, such as screen scraping or data processing (fully proprietary code).
[18:52:27] <m3t4lukas> is it just robomongo or is something like "db.getCollection('test').find({"array": {"$size" : {"$lt": 8}}})" not possible right now?
[18:59:09] <m3t4lukas> shell thells me that user is not defined :/
[18:59:37] <GothAlice> m3t4lukas: You might need an --authenticationDatabase argument, if your user is in a different database than the one they have access to.
[19:04:45] <m3t4lukas> not used to the shell anymore
[19:05:46] <m3t4lukas> okay I tried "db.getCollection('test').find({"array": {"$size" : {"$lt": 8}}})" now
[19:06:03] <m3t4lukas> no error but also no results where there should be results
[19:15:30] <coderman1> is tehre a way to turn on timing for a query in the mongo cli?
[19:17:21] <coderman1> also a way for it to tell me if its using the indexes ive created
[19:18:41] <m3t4lukas> coderman1: it is bound to use indexes you create
[19:20:28] <m3t4lukas> if you want to test your index just do some small code in any language you prefer that a driver exists for and generate a massive amount of documents and test your queries with and without an index and compare those results
[19:28:26] <brotatochip> hey guys, I want to create a database user in mongodb for Icinga to be able to use to monitor the replication status, can anybody tell me what roles I'll need to grant that user?
[19:29:55] <brotatochip> basically I want the user to be able to execute rs.status() on the command line(similar to mysql -e) so I can grep/awk out the relevant info
[19:34:52] <brotatochip> oh actually I think I found it, but feel free to correct me if I'm wrong: db.createUser({user:"icinga",pwd:"<password>",roles:["replSetGetStatus"]})
[20:31:35] <brotatochip> Yeah cheeser, thanks, following that doc already :-)
[20:32:19] <brotatochip> btw I think my syntax errors when attempting to create the custom role was due to weird characters being copied into my terminal from the notes app that I was using for editing the command...
[20:35:31] <coderman1> in collection.stats() what unit is avgObjSize?
[20:44:05] <coderman1> is that size on disk? or uncompressed?
[20:44:56] <deathanchor> mongo is always uncompressed
[20:55:26] <daidoji> Hello, when I create an index does it immediately show up in getIndexes or does it wait until its completed its creation?
[20:59:01] <deathanchor> daidoji: background or foreground?
[21:12:32] <brotatochip> cheeser do you know if I modify my production standalone mongodb instance to a replica set, add my secondaries, and the initial sync begins, will I be able to bring my application back online or should I schedule a downtime for however long that sync takes?
[21:13:33] <brotatochip> the oplog is default size, the DB is 25gb with ~9gb of indexes