[01:17:16] <recidive> hello, I've introduced a 'counter' field in one of my collections, I want to update it with the number of occurrences in another collection, what's the easiest way to do that from the command line?
[14:01:10] <Bofu> For compound indexes if you index 3 fields and only search using 2 of them for a query, will it still use the index?
[14:01:27] <remonvv> restore your data on a 2.1 server, run an aggregation to find your dupes, dump the _id values of the conflicting documents and remove them from your production database. Alternatively build a JS script that runs a distinct on the identifying field and iterate over all distinct keys by doing a count for that field value, if the count > 1 do something
[14:03:23] <jamescarr> any idea why this isn't giving me a collection of the duplicate items I'm looking for? https://gist.github.com/3136381
[14:29:56] <patito> can I remove files from /data/db/local.*?
[14:32:38] <houms> remonvv i cannot seem to get it going. I first had all 3 servers running using replSet = true in config. but the docs say run 3 config servers. I figured the 3 servers could run both config and mongod but with replication. but the docs say do not run replSet with configsvr at the same time
[14:33:37] <jamescarr> actually I got it...how can I convert a date to an ISO date?
[14:33:54] <jamescarr> I have a date like this: Tue, 17 Jul 2012 23:32:53 GMT
[14:34:01] <jamescarr> need to search for an ISO date like that
[14:40:47] <remonvv> hoodow, you have to run 1 or 3 config servers. Where they are running is not relevant.
[14:41:41] <remonvv> hoodow, you said you were testing right? Then just use 1 config server and run it on any of the instances available to you. The reason you should want 3 for production environments and them not running on data nodes is for availability reasons.
[14:42:53] <houms> so i do not need replSet correct? at least the docs seem to imply that running three config servers that not to run any conig servers with replSet because replication is automatic between them but that is done but mongos correct? http://www.mongodb.org/display/DOCS/Configuring+Sharding#ConfiguringSharding-ConfigServers
[14:43:43] <houms> so in theory the minimum recommended dbs in prod. is 6 if using replication?
[14:43:58] <houms> i mean 3 config servers 3 mongod
[14:44:04] <remonvv> jamescarr, this isn't a glorified google sir. Your questions are all first hit google questions. http://www.mongodb.org/display/DOCS/Dates
[14:44:20] <remonvv> hoodow, you need replSet if you're testing replication sets
[14:44:51] <houms> so i set replSet in mongo conf file correct?
[14:45:23] <remonvv> minimum production environment depends on your availability requirements.
[14:45:41] <remonvv> For example it's relatively safe to have a 3 member repset with 3 config servers on each instance.
[14:45:42] <houms> once i do that how do i start the configsvr option ? that cannot be put in the conf file so i assume it also cannot be run on even one of the mongod servers that are usin replSet
[14:45:56] <remonvv> you start a mongod as config server
[14:46:09] <remonvv> again, this is all completely documented from start to finish
[14:46:11] <houms> remonvv the example you describe is what i am trying to achieve
[14:46:31] <Bofu> Any ideas on getting a "BufBuilder grow() > 64MB" while trying to create an index? I know there's the 64MB per-item limit, but ... never thought I'd get that when trying to build an index.
[14:46:44] <houms> the part i do not understand is the docs say you cannot specify configsvr and replset on the same box
[14:46:48] <remonvv> houms, so follow the instructions but adjust where the instances are running
[14:46:54] <remonvv> well you need two mongod processes
[14:47:04] <remonvv> where they run doesn't change anything
[14:48:31] <remonvv> repset members start with mongod --replSet, config servers with --configsvr and then run your mongos with the appropriate config server parameters and you're done
[14:48:38] <remonvv> where these processes are running is not relevant
[14:49:00] <houms> so when the docs say replication between configsvr is automatic so do not use replset, they mean just use configsvr in the config file and then have mongos do the synch between them?
[14:49:39] <houms> so mongos just synchs the config server not the dbs
[14:49:44] <remonvv> IF you run 3 config servers they use replication amongst eachother (through a 3-phase commit approach iirc) to keep the cluster metadata consistent across the config servers
[14:49:49] <remonvv> it has nothing to do with your rep set
[14:50:37] <remonvv> houms, no, config servers sync config servers, repset members sync amongst eachother and mongos pulls repset metadata from the config servers to be able to reach the repset members
[14:52:48] <houms> so if running them on the same box you should be running two mongo processes
[14:58:41] <Bofu> depends on how you want to run them
[14:59:42] <daveriess> in the docs on choosing a shard key, a note says that when prefixing a shardkey with yyyy-mm, performance hits at the beginning of the month can be avoided by creating ranges ahead of time.. can someone expound this?
[15:00:22] <houms> well we are in testing but our testing generally consists of a more accurate prod. setup. granted in prod. we may not run them on the same box we may not totally count that out. as it seems the mongo docs dont necessarily discourage this since the config server is not very resource intensive
[15:01:16] <houms> remonvv and Bofu thank you for your insights and putting up with my questions.
[15:01:31] <Bofu> Was all him, I was just here for the end heh
[15:03:01] <cdave> in my test db box, i filled up my disk and now i get ""assertion" : "Can't take a write lock while out of disk space"," if i try to drop db or collections, is there any way out of this catch22 ?
[15:07:10] <Bofu> Any ideas on getting a "BufBuilder grow() > 64MB" while trying to create an index? I know there's the 64MB per-item limit, but ... never thought I'd get that when trying to build an index.
[15:07:36] <Bofu> NodeX, I think only on 64bit isn't it?
[15:21:06] <NodeX> can you pastebin an example document?
[15:21:10] <Bofu> at first it was a 4 field index, then found out I couldn't do 2 arrays in it - so it was a 3 field, got that. Took it down to just this, and it happened
[15:44:31] <houms> is there a place to view all mongo conf options?
[15:54:15] <Bofu> Repairing... yay cursor locks....
[16:46:59] <jmccree> Quick question, does anyone know if the php mongo extension supports ssl connections?
[17:24:52] <jbenet> Hello! Question: when using pymongo + gevent with db.authenticate, does (1) each greenlet need to call db.authenticate() separately, or (2) the connection is authenticated once, and this auth works for all greenlets?
[17:27:42] <jbenet> some evidence in support of (1) http://stackoverflow.com/a/9193682/346736 + http://api.mongodb.org/python/current/examples/gevent.html#using-gevent-without-threads.
[17:28:32] <jbenet> some evidence in support of (2) http://api.mongodb.org/python/current/api/pymongo/database.html#pymongo.database.Database.authenticate ("all threads will share the authentication")
[17:29:49] <jbenet> these are inconsistent. I'm inclined to trust (2) more, except for the fact that i'm getting odd OperationFailures. :/
[20:43:19] <edvorkin> Hi, I have a problem accessing mongodb instance on amazon - works locally on port 27017 but can't access remotely. Security group allow access to all on port 27017. I also use elastic IP on the instance. Any suggestion?
[22:07:30] <danryan> linsys: thanks, that says the member is in a recovering state. I'm looking for a way to determine how far along this recovering state is
[22:13:37] <Deathspike> Is async operations in C# something that is planned?
[22:20:27] <asdfqwer> oye, how does one do intergration, staging, development enviroments with clients?
[22:20:40] <asdfqwer> given massive amounts of production data
[22:21:49] <asdfqwer> we write our tests and develop locally and tunnel into prod for everything, except it becomes a problem if clients what their collections staged independently of prod
[22:22:18] <asdfqwer> wondering if there is a silver bullet for such a problem
[22:53:59] <toddnine> Hey guys. Are there any examples out there using the java client and building queries for $and or $or
[22:54:12] <toddnine> it's not clear to me how the client should be used to build the array of params
[22:59:57] <toddnine> or if I can do $and [$or (exp), $and(exp)]