[02:04:24] <rburton-> I have an embedded array for comments and I want to ordering to be sorted be reverse (new-to-old) is that possible or must I just do $slice when pulling the comments
[02:12:52] <rburton-> I'm just working on release 1.0 for this website and I have a few companies that want to pay to use it.
[02:14:12] <pycasso> Hello, Im Looking for helpful tutorial on running a monogdb service for a web application just for learning purposes..any suggestions?
[05:01:56] <leo_> have a performance related question. would appreciate if someone can give me a pointer on whats going wrong
[05:02:07] <leo_> I am relatively new to mongo so forgive my ignorance. I have a setup with one client (approximately 300 connections) to a sharded mongo cluster in ec2. All the 300 connections are from single client machine. This gives me approximately 300 inserts/sec. If I add multiple clients running on separate machines the inserts fall to around 70-90. I do see the queue size for readers seems to have gone up. The lock %age seems to be avg aroun
[07:19:30] <coffe> Hi. FYI. the init script for 2.6.4-1 is not working on RHEL systems.. start works but stop dont as its adding a " " to it and then it cant find the pid file
[07:31:00] <coffe> joannac, yes .. thats it.. then its reported .. good.
[07:31:41] <joannac> thanks for letting us know anyway, just in case
[07:41:43] <coffe> joannac, NP . just spent 3h trying to understand why ..
[08:05:24] <arussel> I'm running db.currentOp(true) on a db that should have no activities and was surprised to see some results. Is there something like a 'stale' query or something like it ?
[08:08:13] <arussel> they're all active: false, waitingForLock: false and some have stuff in lockStats
[08:09:21] <arussel> some are mongodb query, but some are mine
[08:54:01] <eliDM> not sure what is the recommended method when dealing with 3 levels of data
[08:54:17] <eliDM> is it better to keep 1 collection or seveal?
[09:02:47] <stefandxm> guys, am i completely stupid or should i use ScopedDbConnection in a multithreaded application? and if so; why is it factory style and returns a pointer to a smart pointer?
[09:18:07] <stefandxm> lets hope it means the same :D
[09:23:21] <_valle_> I having problem running mongodb. I have tried both version 2.6.0 and 2.6.3 with the following result: http://pastebin.com/ggTBVXcT
[09:25:21] <jordana> _valle_: what are you running it on?
[10:28:52] <jordana> _valle_: no worries, I think there are some builds out that are experimental so you might be able to get something up!
[10:29:02] <jordana> _valle_: or host it on a different system
[10:43:22] <rdsoze> I have a large update to run: around 8 million in a collection containing 10 million records. Should I run a single update or break it up into smaller updates using $in ?
[11:43:34] <kali> something wrong with my terminal
[12:14:21] <rdsoze> kali: Thanks. Any article or some sort of time comparison for the two ways ?
[12:17:58] <kali> rdsoze: nope, just experience, or good sense, talking here: most of the expensive work will fetching, updating and saving the documents. you'll update most of the documents in the collections so there is not much to be gain in optimizing documents selection. so i can't see any point in flooding your client and server memory with buffer full of ids
[12:26:46] <rdsoze> kali: thanks! That makes a lot of sense.
[14:29:41] <bendersalt> I'm migrating some data from a postgres database to a mongo database, I kind of naively just outputted to csv and loaded it, but now my time stamps are text and I can't really index them properly, what would be a good way to modify all those rows to be Date types instead? Does this question even make sense.
[14:32:50] <kali> bendersalt: it kinda make sense: http://stackoverflow.com/questions/6475987/importing-date-datatype-using-mongoimport
[14:33:59] <kali> bendersalt: that said, mongodb will probably only be really helpful once you'll have redesign your data model according to mongodb strong points
[14:34:45] <bendersalt> That link was a god send my google fu was deficient
[14:35:51] <bendersalt> kali: Yeah at the moment I'm kind of just doing some weak prototyping, I'll be doing a hard look at data structure and denormalization before I move forward with making it production quality
[14:59:47] <wiitard> without step 2 I get an error message http://bpaste.net/show/f207f8276380 and with step 2 i get an error message http://bpaste.net/show/a51cb1096563
[15:08:28] <Derick> you need to match the one that MAMP was built with
[15:08:47] <Derick> *or* do everything yourself (Starting with removing MAMP completely)
[15:10:36] <wiitard> here is the link to the mamp php version 5.5.3 http://www.mamp.info/en/downloads/older-versions/ I see this package doesn't have the include php headers
[15:11:51] <Derick> My recommendation would be to learn how to setup PHP and Apache yourself.
[15:20:16] <jordana> You're best doing that through vagrant
[15:20:48] <jordana> install it, boot up a centos/ubuntu machine and install PHP/PEAR/Mongo
[16:02:56] <wiitard> @Derick:following this http://verysimple.com/2013/11/05/compile-php-extensions-for-mamp/
[16:12:44] <joer> I want to do a selective field selection when I use mongo's find. Particular situation includes a large associative object within my document for each user so I only want to select the object key relevant to the user. However I also want to select all other fields in the document (which are not linked to the particular user and are not well defined enough to allow me to simply list them and mark them off in my field selection list). I
[16:19:00] <joer> Answered my own question - $elemMatch will do. Incase anyone comes across and is curious!
[16:46:24] <jblancett> where do the init scripts for the mongodb .deb come from? I deleted them on my system and now when I reinstall the .deb it doesn't put them back
[16:46:38] <jblancett> I extracted the .deb and don't see them in there either
[16:48:34] <joer> I am looking at http://docs.mongodb.org/manual/reference/operator/projection/elemMatch/#proj._S_elemMatch and see how to use elemMatch to filter the elements of an array selected. However, is there a way to then select all other fields in my document too without necessarily individually flagging them to be returned?
[17:39:06] <edrocks> does $addToSet return an error if the element is already in the array?
[17:41:54] <cheeser> "The $addToSet operator adds a value to an array only if the value is not already in the array. If the value is in the array, $addToSet does not modify the array."
[18:09:12] <feathersanddown> Hi!, how to add an element in an array that is an atribute from a document in java?? http://docs.mongodb.org/ecosystem/tutorial/getting-started-with-java-driver/#getting-started-with-java-driver <--- there is no example for that
[18:09:36] <feathersanddown> what I'm askink is an update operation?
[18:11:20] <kali> feathersanddown: update with $set
[18:11:36] <kali> feathersanddown: no. not $set, but $push
[21:07:36] <SkramX> i could use some help with an aggregation query. I have a DB of tweets. I am counting the them grouped by user with $sum right now. Now I want to count not only the total but the number by each user that has hashtags which is based on the length of an array
[21:07:46] <SkramX> how do I sum based on if an array is empty or not?
[21:13:27] <sssilver> Hey guys... after getting the results using find(), I need to iterate over the results and add some attributes for each result. How does this work with mongo?
[21:13:36] <sssilver> if the results is basically a cursor object
[21:22:02] <sssilver> basically my problem is that I have a collection of teachers and a collection of students and every time someone requests a list of teachers, each teacher has to have a field like num_students, with the number of related students
[21:24:03] <sssilver> cheeser: this is what I do: http://bpaste.net/show/ab64cfb1b455
[21:24:25] <sssilver> but I don't see how that modifies data
[21:43:15] <leo_> does it construct index in background and this be a disk flush?
[22:04:40] <trco> Hello all. I am receiving a duplicate key error on insert on my _id. It seems after I added some new test data to my test DB this started to happen. Any idea how to reset the _id to the appropriate position so inserts start working?
[22:06:03] <trco> I imagine it's some sort of counter, but I can't seem to get it to reset
[22:08:54] <joannac> the default is a counter based on timestamp
[22:09:16] <joannac> so unless you set your system clock back...
[22:14:07] <Naum> If you are running any edition of Windows Server 2008 R2 or Windows 7, please install a hotfix to resolve an issue with memory mapped files on Windows.