[01:07:29] <Skogmo> I'm looking to get started with mongodb but dont really wanna spend a lot of time on enviroment itself. At the moment im planning on just trying it out with PHP 5.4+. Does anyone have tip for some online hosting where you can just rent a enviroment like that for low load/development ?
[01:08:47] <thewiz> joannac: how could i replace a role instead of add one? in case someone has a role of 'mod' and I want to demod them with a slight rewrite of the same command?
[01:09:04] <thewiz> like replace the mod array with 'user' or something
[02:07:11] <thewiz> if anyone has the time I would really appreciate http://stackoverflow.com/questions/23621712/mongodb-javascript-check-if-a-mongodb-sub-document-is-x
[03:24:16] <in_deep_thought> is there an operation for findbyIdarray? like I can give an array of id's as input and it will return an array of items from the database? or do I have to use a for loop and do findbyid on each one?
[04:39:26] <thewiz> if anyone has the time I would really appreciate http://stackoverflow.com/questions/23622897/mongodb-javascript-mongoose-find-subdocument-and-modify-its-array
[08:01:13] <sweb> after addUser the authentication not work ... i can connect without auth
[08:18:25] <rspijker> and sure you are doing createUser correctly?
[08:18:30] <sweb> rspijker: problem solved using GUI robomongo but seems be the doc isn valid
[08:22:51] <rspijker> mmmk, well, as long as it;s resolved
[08:31:35] <pietia> i have a collection "devices_list" (~500 objects) - i would like to remove them and replace with new list? what would be the mongodb way of doing it? would it be better to store that list on object level (nested collection) and use update uperation which is atomic?
[09:37:19] <Nomikos> Hello. I'm setting a collection to capped at 10M bytes, but when I get the stats() it says max: NumberLong("9223372036854775807")
[11:23:25] <CJ_> I want to do a find and replace in mongo. I originally thought I could write a mapreduce job to do this, but it does not seem possible.
[11:23:44] <CJ_> I would be reading entries from one collection in order to modify another collection.
[11:23:47] <rspijker> when you say “find and replace” what do you want to do exactly?
[11:24:23] <rspijker> yeah, that sounds like you would need javascript to do that
[11:38:00] <rspijker> authenticated. If auth is on, you need to authenticate before you can do things…
[11:39:46] <Nicekiwi> just tried it, gave an error when i tried to use -u and -p
[11:41:45] <Nicekiwi> auth failed. how do i auth? i tried with the detailsw for the specific db
[11:42:30] <kozer> Hi to everyone! Can please ask something ? I have some spatial data, and i use a geowithin based on map bounds.But i want to include filter in these results ($gt,$lt etc) based on client side.Is this possible with mongo?I searched the net but couldnt find anything relative to that! Thank you all!
[11:56:08] <Derick> browser viewport is box, the lines is geowithin
[11:57:52] <kozer> The problem is that i want to show only markers based on viewport, and this is why i use leaflet map.getBounds to achive that.I there any other way for this?
[11:59:32] <kozer> (I am not a geo specialist , im new to all these stuff... :) )
[12:04:19] <Derick> kozer: how big is that view area? continent size, or city?
[12:24:38] <Derick> kozer: that's not a continent :p
[12:24:59] <Derick> in that case, it would probably not matter if you would just use 2dsphere and geoWithin
[12:27:54] <kozer> Yes but when the user zoom in , i want to contain what i show to him, this is why i use this.I dont want to get markers that are not in view
[13:02:53] <Tug> rspijker, well I'm not sure, I am checking this right now ;)
[13:05:11] <Tug> I'm writing a juju script btw (if you ever heard about juju it looks neat but the official mongodb charm has many bug and uses the official ubuntu package not 10gen's)
[13:06:30] <rspijker> never heard of it (10gen is no more btw)
[14:06:41] <tuxtoti> Derick: toNumber() - "Returns: number the closest floating-point representation to this value" . Might not render the right one I guess.
[14:39:22] <Derick> what happens if you run them in parallel?
[14:39:31] <Industrial> I'm trying to build an export feature that gives me a CSV of the merger of several collections, each v getting its own column in the CSV
[14:39:50] <Industrial> I get a few data events (nodejs) from the aggregate stream but then it stops sending data events
[14:47:43] <thewiz> how can I use a previously defined variable targetname, to see if targetname user has a specific role? i tried: if (targetname.roles.indexOf('mod') >= 0) { but it says targetname is underfined
[14:48:40] <Industrial> (stream.pause() is handy but not if you forget :P)
[14:54:23] <Industrial> yeah the way I'm merging these streams is
[14:55:18] <Industrial> take one message from each and immediately pause the stream, if you have a value from ALL streams then take the lowest value (sort by time in my case) and push it and wait another value to be present from ALL streams.
[15:00:42] <sweb> is replication decrease write speed ?
[15:10:52] <thewiz> if anyone has a second I would appreciate it http://stackoverflow.com/questions/23635044/mongodb-javascript-check-subdocument-array-of-a-variable
[15:28:08] <martinrd> Hi guys, anyone ok to answer a quick question on listing collection names on a db with auth?
[15:29:19] <Derick> martinrd: just ask your question, people that know the answer will then reply
[15:29:43] <martinrd> Great, basically, I have a user which is dbAdmin and readWrite but seems not allowed to list collection_names
[15:29:51] <martinrd> pymongo.errors.OperationFailure: database error: not authorized for query on raconteurdb.system.namespaces
[15:30:27] <thewiz> how can I findOne and check if his 'roles' array has 'mod' in it?
[15:32:15] <cheeser> i would think you'd just try to mutate the data and react to any errors.
[15:34:32] <martinrd> The intention is to drop all collections in the db, but that seems impossible to do without being global clusterAdmin, or am I wrong?
[15:38:13] <spuz> There appears to be something wrong with the docs on this page: http://docs.mongodb.org/ecosystem/drivers/java-concurrency/ It says using the WriteConvert.ACKNOWLEDGED it the same as calling
[15:38:49] <spuz> ... getLastError() but how can you get the last error without calling that method?
[15:41:12] <spuz> (sorry I had a bit of a keyboard accident earlier)
[15:46:04] <thewiz> how can I find a specific user in the collection and also check if his 'roles' array has 'mod' in it?
[15:54:02] <NaN> why mongod crashed on all my machines? (same problem on all)
[15:54:52] <abique> Hi, I'm using the cxx driver and have the following issues: http://pastebin.com/Rnbv5zES usually what generates them? Memory corruption? Race in the library? ...? Thanks :)
[15:55:18] <NaN> https://stackoverflow.com/questions/23086655/mongodb-service-will-not-start-after-initial-setup <<< something like this but with selinux disabled
[16:01:21] <ranman> NaN: what are the permissions on your data directory? or your /var/run/mongodb directory?
[16:01:34] <ranman> NaN: how did you install mongodb
[16:01:46] <ranman> NaN: what is the message that mongodb fails with
[16:02:21] <NaN> ranman: installed with yum from the oficial (mongod) repos
[16:02:32] <NaN> ranman: I just updated and it seems it's working (on this machine)
[16:03:12] <NaN> ranman: I will need to check if it works on my other machines
[19:32:50] <fifosine> Is mongoengine required to write a python app with flask?
[19:33:22] <fifosine> The only tutorial I can find that uses python flask and mongodb also uses mongoengine
[19:35:06] <fifosine> Slash, why would I want to use mongoengine?
[20:00:38] <fifosine> What function does a mapfield serve?
[20:16:02] <Guest29077> Hi, upgrade problem. going to 2.6.1 from 2.4, failure. now complaining that the user mongodb doesnt exist.
[20:16:20] <Guest29077> it does, tried removing the user, that didnt help.
[21:25:24] <moleWork> hello, I'm trying to diagnose a performance problem on mongodb... i think it might be caused by slow io causing background flush's.... but what else takes global write locks?... what is a way to diagnose this?... i'm only writing to 1 db at one time so i don't think it's the db write lock.... i'm staring at mms but i don't think it updates at high enough frequency to show me all the background flush's that are occuring
[21:26:04] <Guest29077> can you replicate with a single query, or is only when doing bulk operation
[21:26:44] <moleWork> if you are talking to me i'm doing a single insert query, but over and over.... rotating databases
[21:29:55] <moleWork> it's something to do with the global lock
[21:30:24] <moleWork> in mms my global write lock is at 30%
[21:31:37] <moleWork> background flush seems to be in mms but only happenning every 10 or so minutes it looks like from mms but it's saying it's taking like.... 450-550seconds!
[21:32:01] <moleWork> which means it's basically continually happenning
[21:39:48] <moleWork> one thing is that mongostat doesn't really say i have any qr's or qw's because i'm only a single user waiting for each operation to finish
[21:40:04] <moleWork> so it's not like i'm getting hit by concurrency problem
[21:44:45] <moleWork> i think i know what is happenning... i'm inserting into lots of different indexes..... the background flush is taking forever,... meanwhile all the other inserts are making more data to sync.... combined with the slow disk..... = problem
[21:45:07] <moleWork> it's just that the DataFileSync is so slow.... i never see it in my logs since it only ever happens in a blue moon
[21:46:07] <moleWork> it's a problem that causes more problems... leading this mess...
[21:46:32] <moleWork> okay... glad we talked that through :)