[03:59:43] <wg> If i'm making a threaded comment system, with each comment in its own doc, is an array of objectIDs on parents (articles, say) a good way to reference them?
[06:23:56] <caulagi> ah, got it. Should be longitude, latitude. I was using latitude, longitude.
[06:49:41] <a215> if i run an "in" search with an array of 175 ids, when those ids are indexed, should it be taking 5 entire seconds?
[06:58:58] <a215> i'd paste code but it's running through mongoid
[08:04:24] <jrippon> Hi everyone - I wonder if I can get some advice/thoughts on an upgrade/migration strategy for our sharded cluster of mongodb replicasets to move to new servers?
[08:05:56] <jrippon> at present the servers are running mongo 2.0.1, we've three replica sets which we shard our main db collections across.
[08:08:11] <jrippon> unfortunately, both the replica set members and the mongos configdbs have been configured by IP address, so I can't just clone them and update dns - I've added replicas on our new servers to each replicaset, I'd though the best course of action was to start by re-defining the configdbs to use hostnames which I can point at the new servers to migrate them.
[08:11:58] <jrippon> sadly when I brought the stack back up with a hostname for the last configdb in the mongos config (first stage in the "migrating configdb to a new hostname" instructions) one of the three replicasets in db.shards.find() isn't correct, and I get a "warning: bad serverID set in setShardVersion" in my logs
[08:56:46] <stathis> Hi to all, I am new to mongodb and I want to create the following simple schema. I will describe it in relational thinking: 3 tables -> company , product , deals company is related one to many to deals. product is related one to many to deals. So the deals table is the link between company and product It would have the following structure deal_id | company_id | product_id | extra_fields how should I implement this structure
[08:58:06] <Nodex> really depends on your access patterns
[09:03:16] <Repox> Hi. I can't seem to find in the documentation how I cange a users role? I have a user I'd like to make dbAdmin - should I just add the user again with the right role?
[09:05:48] <stathis> nodex: what do you mean my access patterns?
[09:13:12] <MatToufoutu> sry for the flood people, bouncer issues :(
[09:15:11] <Nodex> stathis : how you intend on accessing your data
[09:15:27] <Nodex> and it has nothing to do with the driver or language
[10:20:50] <Morgawr> hello, pardon if this is a very noobish question but I'm just starting to learn how to use mongodb, I have a collection with some data and I want to modify a single field, when I try to use update({"id":someNumber},{"fieldToModify":"newValue"}) it just overwrites the whole collection
[12:24:54] <movedx> We have a simple cluster: router, three shards and three config servers. When upgrading the MongoDB version, in what order should I shut these down in? I'm thinking Router to stop traffic coming in; shards top stop usage of the config sevrers then the config servers?
[12:25:01] <movedx> Then upgrade and bring back up in reverse order?
[12:32:14] <bobbytek> Hi all, can someone please point me to documentation on nested projections?
[12:32:29] <bobbytek> For example: db.Release.findOne({},{'submissions.projectKey': 1})
[12:33:23] <bobbytek> However, according to http://docs.mongodb.org/manual/tutorial/project-fields-from-query-results/#projection, "MongoDB does not support projections of portions of arrays except when using the $elemMatch and $slice projection operators."
[13:07:26] <Nodex> anything you can do in the shell can be done in a driver too
[13:07:56] <bobbytek> Sure, but if you are trying to direct a library implementer to support this feature, it helps if you can point them to the docs :)
[13:08:21] <bobbytek> In this case, it is the mysema querydsl for MongoDB
[13:24:11] <scruz> following http://docs.mongodb.org/manual/tutorial/model-tree-structures-with-ancestors-array/. trying to get a query to group books by topic. could anyone help, please?
[13:31:15] <Nodex> scruz : please gist/pastebin your code
[13:32:43] <tscanausa> is there a way to change which shard a database is on?
[13:33:14] <cheeser> you can copy a database to another host.
[14:14:27] <scruz> if, for instance, i want to get all Motels in Kenya, i'd also like to group by District, for instance.
[14:39:04] <fdask> hey all. wondering what the best option is for accessing mongo from lua?
[14:46:27] <MmikePoso> Hi. I can't find confirmation for this in the manual - when the secondary instance in replset is 'lagging' behind the primary, it will not respond to queries - during that time it is in startup2 state
[14:46:33] <MmikePoso> but where can I configure the lag amount?
[16:39:16] <wc-> hi all, im trying to forecast some mongo data / memory usage
[16:39:31] <wc-> do index sizes tend to scale linearly as data is added? (assuming we dont add new indexes)
[16:40:36] <wc-> and when we add new data, i know mongo reserves disk space in larger and larger blocks, anyone know any good documentation on that? id like to learn more about it
[16:41:15] <Joeskyyy> This page covers all that pretty well iMO http://docs.mongodb.org/manual/faq/storage/
[16:41:31] <Joeskyyy> Addresses the size of index and the file buffer
[17:27:59] <Joeskyyy> Eh, depends a bit on what you're doing.
[17:28:21] <Joeskyyy> Shared environments can be pretty terrible for REALLY intensive workloads, but with the scalability of mongo, the cloud kinda plays nice.
[17:28:35] <Joeskyyy> And virtualization is getting better and better with making sure resources are properly fenced off.
[17:28:51] <Joeskyyy> No one likes a noisy neighbour (:
[17:28:54] <Nodex> still expensive cmpared ot bare metal
[17:30:16] <Joeskyyy> That's why a hybrid environment is the bee's knees. Having your bare metal constantly running, then bursting into the cloud when you need it.
[17:30:47] <Nodex> tbh we just have infrastructure that does queue processing and backups but can handle load when needed
[17:30:58] <Joeskyyy> That's the most optimal, I agree.
[17:31:14] <Joeskyyy> Have a nice redis/RabbitMQ/whatever take all your things and put them in over time.
[17:31:15] <Nodex> but we're in between small and large so an edge case
[17:31:37] <Joeskyyy> Right, it may not work as well for someone who needs data as soon as it's sent away.
[17:31:43] <Nodex> not worth putting it all in the cloud and not worth having racks in DC's
[17:31:47] <Joeskyyy> But if that's the case, you're probably gonna run into issues regardless :P
[17:32:04] <Nodex> tbh for cold storage we do use the "cloud"
[17:33:07] <Joeskyyy> haha, ah the almighty "cloud" and it's multiple meanings
[17:33:25] <Nodex> I was doing "cloud" ten years ago before it was trendy
[17:34:53] <Joeskyyy> ObjectRocket uses containerizing actually on their baremetal for provisioning
[17:35:03] <Joeskyyy> OpenVZ containerizing, so very very very little overhead.
[17:35:36] <Nodex> it's pretty sweet and easy to spin an AMI up or w/e and your stack is there without to much hassle
[17:35:40] <Joeskyyy> I built a simple mongoDB docker container I pushed to the repos, I never actually load tested it to see if it actually works haha
[17:43:59] <Joeskyyy> "The default page size is 4 kilobytes: to convert this value to the amount of data in memory multiply this value by 4 kilobytes."
[18:25:25] <ekristen> having some problems with the mongodb node.js driver
[18:25:38] <ekristen> trying to get secondaryPreferred reads working
[18:26:00] <ekristen> but I keep seeing in the logs on my master that readpreference mode is primary
[18:26:09] <ekristen> 1.3.23 mongodb driver version
[19:06:56] <synth__> in php, how would i update a subdocument if my document is like: ----> { "_id" : ObjectId("52e074d91bcfc5ca4dcb57c2"), "description" : "", "email" : "", "extra" : { }, "hide" : false, "mobile" : "", "name" : "", "phone" : "", "photo_url" : "", "uid" : "josh.childers", "visibility" : { "description" : 1, "email" : 1, "phone" : 1, "mobile" : 1 } } <---- and let's say i want to update