[03:08:39] <mjuszcza1> Hi all. I have two mongo servers and an arbitrator sitting in front of them. The active mongo server responds fine -- "show dbs" returns instantly. But if I run "show dbs" on the server that isn't the active host, nothing returns. This is a new setup to me (I inherited it), so I'm trying to figure out if this is a normal behavior or not. I assume, somehow, the active server is sending the inactive server updates, and perhaps while that happen
[04:01:44] <Dr{Who}> does a baked in $now var exist? i want to return docs that are less than N seconds old. dont trust dates on php side to match db so would be best to let the db use its own time.
[05:22:00] <timeturner> is there a list of things I should know in preparing for production?
[05:22:11] <timeturner> I'm sure there are many things I need to do
[05:22:21] <timeturner> but I don't know where to find the list
[09:43:21] <alex88> is there a way to sort data from a group() operation?
[09:43:47] <kali> alex88: try the aggregation framework
[09:44:04] <alex88> kali: eheh I've looked at that but seems harder to use
[09:44:19] <kali> alex88: not much, and it's way more efficient
[09:44:32] <kali> alex88: it doesn't use javascript
[09:46:49] <alex88> actually I'm using the group function this way http://pastie.org/private/u7xvhtykapb3isxm5gl3fw you think it can be ported to aggregation fw? it basically just groups docs by the name giving a [{ name="somename", metrics=[docs] }, ... ] result
[09:49:22] <kali> alex88: mmm yeah, i think this is quiee straightforward
[10:21:50] <Touillettes> Hi everyon i have old tables on my sharding is that possible to remove tables on the sharding ?
[10:31:51] <Touillettes> Hi everyon i have old tables on my sharding is that possible to remove tables on the sharding ?
[10:47:08] <omid8bimo> hello, we have a php web application (experimental social networking site) running mongodb. one issue we have is that, when we open several pages of the website in different browser tabs, images wont load. when i clocked like half of the tabs, the rest will start loading the images. there is no err on mongo log or apache log. any ideas?
[10:50:49] <Nodex> perhaps your application is causing it?
[10:52:26] <omid8bimo> Nodex: you mean it can be due to mongo php driver?
[10:52:47] <Nodex> no, I mean perhaps it's down to your application code
[10:55:31] <omid8bimo> Nodex: well since it need a huge debugging on application level, i wanted to make sure if there's any limitation/settings on mongodb side
[10:55:52] <omid8bimo> or any logs or something i can find a hint on what could be wrong
[10:59:07] <Nodex> I dont see how you arrive at the conclusion that Mongodb would be responsible for images not loading
[11:04:36] <Colonel-Rosa> does anyone know if it's possible to paste a lot of insert lines into the mongo cli, ie https://gist.github.com/ThePixelDeveloper/2725a251f087dd070bfa
[11:05:05] <Colonel-Rosa> right now they concat in an odd manner
[11:07:17] <Nodex> then that's probably your problem
[11:07:33] <Nodex> your PHP/Apache is probably choking under the load
[11:10:25] <omid8bimo> Nodex: what do you mean by load? if you mean Liunx server load or even apache's child requests, its almost nothing. since its still in testing and only like 10/20 people are conncted and opening pages.
[15:04:38] <shmoon> i'm stuck at doing something like
[15:05:09] <shmoon> select field1, field2 ... field5 from tbl group by field1
[15:05:38] <shmoon> db.coll.group() wont help, reading aggregation framework but apparently it requires me to have the fields in $group as well as $project sucks
[15:06:23] <kali> shmoon: ha ! you already looked at it
[15:06:37] <kali> shmoon: well, you'd better use it than m/r anyway
[15:08:11] <shmoon> no see, i have task_id and message fields in $project but only task_id in $group, and the resultset only contains task_id fields not messages
[15:08:57] <kali> shmoon: use $addToSet on message
[15:20:35] <UForgotten> Is there a way to make a node that is a single-node replicaset back into a standalone and keep the data? I've only had one node in the set and it's rediculous to keep the replication data around if I'm not going to have redundancy.
[15:21:51] <kali> UForgotten: just discard the --replSet and restart the server
[15:22:14] <UForgotten> kali: that won't get rid of the rediculously large local collection though right?
[15:24:30] <shmoon> kali: ok now i seem to understand whatever field i add in $project i need to add it as $first, $last or maybe $addToSet in $group, am i getting it right ?
[15:24:32] <Ephexeve_laptop> Anyone used MongoEngine here? Why is my datetime being saved like -> "date_crawled" : ISODate("2013-03-11T11:23:00.670Z") with a Z?
[15:24:57] <shmoon> but does that mean it does GROUP BY field1, field2, field3 all the ones mentioned in $group ?
[15:25:01] <kali> shmoon: mmm yeah, i think you got it right
[18:29:46] <Almindor> I have a unique index on a collection but it seems inserts go through with same valued docs, isn't it enforced? (also what about updates to the field, are those supposed to be enforced?)
[18:37:40] <Almindor> hups, my fauld, typo in mongoosejs definition
[18:42:50] <gazarsgo> why do the docs for cloudformation+mongodb only make two nodes? dont you need 3 for a cluster?
[19:22:49] <mjuszcza1> What would cause a replica to be in a state of "3"
[19:22:55] <mjuszcza1> and not be responding to something simple like "show dbs"
[20:29:18] <jrdn> are there any disadvantages for making my document _id a hash?
[20:30:32] <jrdn> originally I was creating a string like, "2012-01-01_foo_bar=baz&haz=cat" as my id.. but doing this makes me have to have other fields just in case i want to do additional filtering...
[20:31:22] <jrdn> so is it bad to do: "_id": { date: "2012-01-01", name: "bar", "metadata": { haz: "cat" } }
[20:33:00] <preaction> jrdn, your document Id should not be dependent on any information inside the document. IDs are supposed to be an ID, not information
[20:33:22] <preaction> so, what you had was bad, what you're proposing is worse
[20:36:47] <falenn> at MongoDC, it was recommended that _id contain data that allows for direct document reference as it is a primary index, if you can ensure uniqueness
[20:37:48] <preaction> the problem with making your ID related to the data inside the document (by hashing data inside the document) is when the data inside the document changes, so (should/does) the ID. IDs should never change
[21:14:51] <mjuszczak> It just says it's in a state of "3"
[21:15:20] <mjuszczak> and ls -lt /datadir shows a last modified of February 22nd :-/ I'm not quite sure if there's another way to see what's up. There are definitely files being modified (and growing) inside the rollback directory.
[21:18:03] <mjuszczak> I'm trying to figure out if the server is too far behind and needs to be rebuilt
[22:00:17] <mnml_> some of my gridfs files don't load (the server does a lot of IO and at some point it expires) does anyone know why this can happen ?
[22:18:10] <mnml_> is it possible to setup a timeout ?
[22:35:00] <ExxKA> If anyone has been using mongoose, how did you integrate it with your domain model? Did you build the domain model around the mongoose data model or did you fit the mongoose model to your domain? I am having a hard time doing the later (fitting mongoose as an after thought)
[22:42:43] <cmendes0101> I'm having an issue where cursor->count() always returns 0. Does anyone know a workaround for getting the total number of records in a cursor?
[22:54:28] <ExxKA> isn't cause you have to move it just one tick to get the daata?
[22:55:03] <ExxKA> Cursors usually point to a placeholder untill they are moved to be initialized
[22:57:07] <cmendes0101> We have 2 systems, 1 dev and 1 prod and when running on dev cursor->count returns correctly but on the other system always returns 0. I don't believe thats the problem since its working on dev. This is in perl also if that changes anything
[23:43:30] <svm_invictvs> What's the best way to do mongodb backups?