[00:50:45] <rednovae> i have taggable content. post = {..., tags=['one', 'two', 'three]}. I want to query this content to select documents that have given flags. for example, I want to query all documents that have flags two and three, and also all documents that have flags two or three
[04:26:10] <loklaan> hi, is there a way to use Grid and GridStore without having to db.close() after every class chain
[04:29:33] <k_sze[work]> If my documents have an array field, and I want to find the documents where 'foo' is among the values of the array field, how do I do it?
[05:28:05] <fghd> i have a little porblem with auth on mongodb instance via localhost
[05:29:37] <fghd> i've created user with admin priveleges on my localhost machine. If I trying to connect to instance i recieving message that i not authorized
[05:30:12] <fghd> mongodb.conf is edited to auth=true of course
[05:30:45] <fghd> i want to connect without password only at localhost
[05:31:22] <fghd> i added to enableLocalhostAuthBypass=0 to my init file
[06:22:36] <joannac> further documented here: http://docs.mongodb.org/manual/core/authentication/#localhost-exception
[06:38:52] <jbergstroem> Yo. Scons bails while linking with argument list too long. Suggestions? :) https://gist.githubusercontent.com/jbergstroem/ef7acf18fed90da42243/raw/gistfile1.txt
[06:43:44] <ranman> jbergstroem: can you hit us up with the exact scons command you ran
[06:44:36] <Agnar> while trying to get the mongodb 2.6 package for solaris running on solaris10/amd64, I noticed that a) the needed mongodb-extras.tgz is no longer available and also the software is linked against the illumos libc, which makes it impossoible to run the software on stock solaris.
[06:45:35] <ranman> Agnar: I think they're working on better solaris support, can you search for a ticket jira.mongodb.org or open one with your findings?
[07:25:24] <Richhh> I have a field f which holds an array of objects eg f:{a:'x',b:'y'}, how can I query just for ({ f:{a:'x'} }) (any value of b)
[07:25:54] <Richhh> I have a field f which holds an array of objects eg f:[{a:'x',b:'y'},{a:'z',b:'z'}], how can I query just for ({ f:{a:'x'} }) (any value of b) *
[07:27:25] <Richhh> I tried ({f:{a:'x',b:{ $exists : true }} }) but no luck
[07:31:13] <ranman> Richhh: have you tried something like {'f.a': x} ?
[07:36:50] <Richhh> oh, yeah that works, thanks ranman
[07:59:40] <Agnar> by the way - are there any effords to make the mongodb server runnable on big-endian?
[10:29:04] <remonvv> Hi all. Our mongos process is complaining about config servers being out of sync. How do we determine (reliably) which config server has the most recent config data?
[10:29:05] <z1mme> So i have a user collection with the user accounts able to log in to my system, and each user belongs to one or more organizations. the users will have some organization specific information, where's a good place to put that?
[10:30:20] <remonvv> How many organizations typically per user?
[10:31:19] <z1mme> The edge-case would be a user that belongs to many organizations, usually the user just belong to one org
[10:32:41] <z1mme> 90%: 1 org, 5%: less than 5 orgs, 5%: more than 5 orgs
[10:35:19] <remonvv> Basically, if there are few organizations per user, if they change rarely if at all and if you regularly need the organizations a user is part of then embedding is the route.
[10:35:36] <remonvv> In all other scenarios I'd probably go for a dedicated collection
[10:38:50] <z1mme> I'll do a dedicated collection, because the organization specific information will be manipulated more than the data in the users collection
[12:59:41] <jet> in the mongoc driver, I don't understand which command create the tcp connexion and how I can get any error code if the connexion failed
[14:42:11] <rspijker> anyone know of any reason why my netout in mongostat should be fairly large (around 15M) for no apparent reason?
[14:50:18] <q851> rspijker: can you post the full mongostat output?
[14:56:58] <q851> rspijker: probably because of the getmore operations.
[14:57:39] <Frosh> Is there a simple way to duplicate the _id column since django doesn't like displaying _id?
[14:58:38] <rspijker> q851: maybe... but there's not that much going on... As in, there should be pretty much nothing going on. But if I use nethogs to inspect my output, mongos is sending between 2.5MB/s and 7MB/s (capital B)... Which seems excessive
[14:58:39] <q851> rspijker: do you have profiling turned on?
[15:07:32] <rspijker> most of them are empty (all 0ms), some of them have something between 50 and 150ms on read concentrated on a single DB, nothing on write. Sometimes there will be 1 or 2ms on the users collection for auth purposes
[15:46:10] <rspijker> morfin: I don't understand your question. Isn't the entire purpose of ODBC to not have to know how mongo does that?
[15:55:50] <q851> Gah, more missing info from mongo docs. Eternally frustrating. Does anybody know what RTR means under repl column of the mongostat command?
[15:57:17] <kali> q851: RTR - mongos process ("router")
[16:14:07] <morfin> my problem is next i need dynamic rules to select information from database, and same rules should be applied when running from different applications. Any ideas how can i make that?
[19:25:15] <shesek> I want to update one of a few fields where they have some specific value, and set it to a new value. Basically. `update({ foo: 1 }, { $set: { foo: 2 } })`, `update({ bar: 1 }, { $set: { bar: 2 } })` and `update({ qux: 1 }, { $set: { qux: 2 } })`
[19:25:29] <shesek> Can I do that in one update statement somehow, or do I have to issue one for each field?
[19:28:37] <q851> shesek: see the $set parameter: http://docs.mongodb.org/manual/reference/method/db.collection.update/#update-specific-fields
[19:32:27] <kali> shesek: you need to create this different statement, but you can send them in one single round trip since 2.6 and the update command
[19:34:12] <pscheie> We're using mongodb 2.4.9/10, installed via yum from the mongo repo.
[19:35:26] <pscheie> But something changed recently such that when we run 'yum install mongo-10gen-server' it says that version is obsolete and it forces the install of mongodb-org packages which are version 2.6 which we don't want.
[19:35:58] <pscheie> Why is this being forced on us and how do we get around it?
[19:36:40] <cheeser> the packages were renamed out of the 10gen namespace and into the mongodb namespace to coordinate with the corporate name change.
[19:37:00] <cheeser> afaik, there are no 2.6 packages under 10gen
[19:37:11] <pscheie> cheeser, yes, but it wasn't just name change.
[19:43:13] <pscheie> Unfortunately, we're using puppet & spacewalk and we don't really have a yum.conf file.
[19:46:19] <pscheie> It is irritating that even if I specify an explicit package, say, mongo-10gen-server-2.4.10-mongodb_1, mongo's repo has been configured not to give it to me.
[19:46:54] <cheeser> i doubt that it's configured not to give you anything.
[19:47:23] <cheeser> yeah. i'm on ubuntu myself, too.
[19:47:37] <pscheie> "Package mongo-10gen-server is obsoleted by mongodb-org-server, trying to install mongodb-org-server-2.6.1-0.2.rc0.x86_64 instead" is what it says.
[19:48:26] <pscheie> heh, well, today I wish we were using chef. But that was a decision made long before I got here.
[19:48:49] <pscheie> Sadly, I'm dead in the water with this.
[19:49:42] <pscheie> puppet does have a 'install_options' parameter and it seems like I ought to be able to specify --exclude parameters.
[22:22:29] <kreantos> is there a possibility to use "BasicDBObject" queries together with morphia?
[22:22:57] <cheeser> nothing comes to mind. what did you have in mind?
[22:32:12] <scottyob> Hi all. I'm wondering about the best way to shard my dataset. Let's say I'm keeping user-download counters and the most common operation is an update (upsert). Would I better off be sharding on the username or date? If I shard by the date, with every day that passes I imagine there's a lot of rebalencing going on
[22:34:57] <joannac> don't shard with a monotonically increasing shard key
[22:35:42] <scottyob> Well that settles that then. Sharding on the username :). Sharding should make these updates go faster with a smaller set to look through out of that sharded set yeah?
[22:37:58] <joannac> well, it'll be targetted, yes
[22:51:26] <scottyob> oh man. I don't really get what I'm doing. I didn't tell this to be uniqueue. The username is not inuque, the username AND date combinations together are unique { "v" : 1, "name" : "username_1", "key" : { "username" : 1 }, "unique" : true, "ns" : "herbert.users", "sparse" : 1 }
[23:01:39] <scottyob> if I always want to search and update based on a field 'username', and a 'date' field.. would I be best doing ensureIndex( {username: "hashed", date: 1} )?
[23:49:53] <mikeylikesit> Hi all, I have a question about collection design in mongo, I come from a sql background so things have been a different.
[23:51:48] <mikeylikesit> I am attempting to do something that I would have typically done with a linking table and joins in sql
[23:52:47] <mikeylikesit> ie, I have a table (lets call it group) and I have a table (lets call it messages) and I have yet another table (users)
[23:53:59] <mikeylikesit> groups have many members and many messages, in sql I would have just had linking tables to link user_ids to group_ids and message_ids to group_ids
[23:54:06] <mikeylikesit> what is the blessed way to do this in mongo?
[23:54:31] <mikeylikesit> I have heard people talking about embedding, but from a performance perspective, how long will it take for that to get out of hand?