[02:41:07] <phrozensilver> I'm having some trouble with mongoose/ mongodb trying to send data to my api, heres the data I want to send and the angular js controller - https://gist.github.com/rdallaire/241dd48262ec856620c1
[02:42:56] <phrozensilver> I'm wondering if I just doing the syntax wrong
[03:39:34] <ron_frown> does mongo have any date aggregation stuff built in? SO I can say give me shit that happened this day and pass in the date and it'll chunk off time precision?
[03:44:16] <joannac> I don't know what you mean by "chunk off time precision"
[03:57:09] <Puckel_> Hello there. I have a problem with my replicaSet. I have a problem with my first two name servers present in my resolv.conf, the third name server is ok, but I get errors in mongo logs because it failed to getaddrinfo of my servers. DNS lookup is not recursive in mongodb ?
[04:12:26] <Puckel_> joannac: thank you for your reply, the problem is due to human error on the firewall, nameservers are again reachable and the problem is solved. thank you again.
[07:10:21] <greenmang0> I want to create an index on a replica set, following the documented method here - http://docs.mongodb.org/v2.4/tutorial/build-indexes-on-replica-sets/#index-building-replica-sets, after creating indexes on secondary, i want to create it on primary in background, cause I don't want to step it down, the docs say that "background index creation" on primary will result in "foreground index creation on
[07:10:23] <greenmang0> secondaries", but in my case all secondaries will already have index, so two questions 1) will secondaries again create the index? 2) will it cause secondaries to not accept read/write ops?
[07:11:49] <joannac> the replicated index creation command should be a no-op on the secondaries
[07:21:53] <rpcesar> herro. I am working with the mongodb driver, and curious if there are any cons to storing and passing around the collection instance, as most tests I see people passing around a pure mongoclient, and calling .collection(<collection_name>). is there any pitfalls I need to be aware of regarding passing around the Collection response from the .collection instead?
[07:36:36] <rpcesar> in general, one creates the MongoClient, and calls connect. the connect returns a "Database?" instance to the callback (on success). One can then call db.collection('collection name') to get a "Collection?" instance. I am wondering if that result, by itself, is safe to pass around. Basically to initialize a "module" that deals only with a single settable collection.
[07:37:45] <rpcesar> I am trying to make my authentication layer as obviously and explicitly seperate as possible, as its intention is to be seperated (by box) from what store, as an example, the email address of the user in raw form.
[07:38:59] <rpcesar> scouring a few unit tests, it seems like most examples i see of this have people passing around the "Database?" instance, and calling .collection() as necessary to pull up the collection instances, even in cases where this seems unnecessary (only dealing with one collection)
[07:40:20] <rpcesar> however, besides running that function call (havent timed it, presume its minimal though), it also defeats some of the abstraction, as I want all my "Engines" to be potentially abstracted away from even having a named collection identifier (this way I can hot swap certain components and test against things like redis for certain "tables")
[07:41:08] <rpcesar> hopefully my goals make sense, if something isn't let me know and I will try my best to clarify further
[07:44:16] <Nodex> I don't see why you wouldn't be able to set the collection to a variable and pass it round
[07:44:57] <rpcesar> right, and I am aware I "can". what im trying to figure out is why no one IS.
[07:45:19] <rpcesar> im wondering if there is some con im glossing over. such as the state being decoupled from the database in some way I don't realize
[07:45:26] <rspijker> Should be fine, indeed. Think the reason you usually pass around DBs might be that it’s very common to have multiple DBs with the same structure. Each having a bunch of collections with the same name… It could get complicated if you pass around collections in that case.
[09:05:58] <adrienpa> Hi everyone ! i'm trying to plug my mms monitoring agent to my standalone mongo server running on a dedicated box. I've used the IP in place of the hostname, and when I started the agent, it made 3 little requests to the right IP, then restarted with a new hostname (my machine's uname) instead of the IP. the host I can see on MMS GUI has also been updated accordingly.
[09:07:12] <adrienpa> I've searched the docs, where they talk about /etc/hosts, or that you can override some regex to use IPs, but I don't think that this is the problem, since I can reach my box from the server running the agent without a problem.
[09:07:31] <adrienpa> has anyone figured this out already ? thanks !
[09:16:15] <kkkk> i've restarted nodejs process but the error still exist
[09:16:27] <kkkk> it was only fixed when mongodb was restarted
[09:16:54] <Nodex> is that "" supposed to be the ObjectId?
[09:17:01] <kkkk> if i sort by "-startDate", i do not have the bug
[09:17:28] <kkkk> if im not wrong, the "" key refers to an element in the friends arry
[09:17:58] <Nodex> It sounds like it's a mongoose error. to double check simply execute the same query on the mongodb shell and see if it does the same thing
[10:01:42] <kkkk> the only change in the query is just the sort()
[10:01:42] <rspijker> I don’t know from the top of my head whether those range queries will succeed if, for instance, the start and endDate fields don’t exist
[14:56:24] <Zelest> Derick, do you have any usecases where any big profile companies uses GridFS in production?
[14:56:32] <rspijker> this might be an intereseting, if frightening read ernetas: http://blog.mongohq.com/shipwrecked-a-mongodb-data-recovery-tale/
[14:56:55] <rspijker> if you are sure the data files are intact though and you can get the seq numbers as Derick suggests then definitely go with that :P
[15:01:36] <boombaloo> anyone knows how to make monngorestore to restore data from the dump ? I swear I tried like 100 of combinations but it no like thm
[15:01:52] <Derick> edrocks: what would you want to use it for?
[15:02:54] <edrocks> i was going to use it for continuous deployment to handle updates being rolledout to all my servers and have them auto restart/talk to nginx(or something simillar that we make) to cordinate when to turn its route on/off
[15:39:20] <ernetas> Derick: will try a bit later. Thanks though, that does seem like it may work. However, I have some files which differ in size (are larger) just a little bit. Not sure how that will work (will MongoDB just ignore that part or what). Also, what if some files are missing? Those are just questions that are comming to my mind atm, nothing confirmed yet, will let you know how this goes.
[15:39:41] <Derick> if the files are corrupt, I think, you're screwed
[15:39:51] <Derick> and any missing file makes it all not work either
[15:59:31] <Derick> ernetas: I don't know thta, sorry
[16:02:27] <BlakeRG> can anyone point me in the right direction to get the latest single document in a collection based on a date/time?
[16:10:17] <culthero> Anyone around to help me with a broken install of mongodb via Debian? I had attempted to use tokumx and now have to revert back to 2.6.3 of mongo
[16:13:42] <culthero> hm, i had to force it to install version 2.6.3
[18:07:37] <foldedcat> I need to build a feature where a user saves a piece of content for viewing later, what would be the proper schema for saving content to a user? I would need to be able to have a listing of the content where only saved items are highlighted
[18:41:17] <BlakeRG> how do i pull out the last single document from a collection based on a time stamp field?
[19:09:20] <obiwahn> build/linux2/normal/mongo/db/repl/repl_coordinator_impl.o: In function `~TopologyCoordinatorImpl': ... git-mongodb/src/mongo/db/repl/topology_coordinator_impl.h:53: undefined reference to ... `vtable for mongo::repl::TopologyCoordinatorImpl'
[19:11:01] <obiwahn> Is Tovalds right and my compiler is broken? When i move the dtor's body to the cpp it works ...
[19:22:43] <niks2112> Has anyone worked with mongodb MMS back up? I want to know the connection speed between MMS cloud storage backup and AWS. I want to estimate the time to restore data.
[19:54:23] <obiwahn> and is there no checking before you commit to master?
[20:06:50] <q85> Hey all, I have an urgent issue. We have a 3 member replicaset. One of the members is hidden and delayed. The problem I'm seeing: we have mongos instances which are routing queries to the hidden member. All mongo components are 2.4.9. Can anyone point me to why mongos is routing queries to the hidden member?
[20:18:37] <gequeue> Hi All. What's the best way for me to get a document structured like this { "name" : { "first":"bob", "last":"smith" }, "age": 40 } into { "first":"bob", "last":"smith", "age": 40 } ?
[20:21:22] <stefandxm> gequeue, plain guess; use project
[20:26:31] <gequeue> stefandxm: You're the man! I forgot I can use "$name.first" to get to the sub value
[20:26:36] <gequeue> I got what I needed. Thank you.
[20:50:13] <ernetas> I now have only "database.xx" files.
[20:50:25] <ernetas> And local.xx. Is it possible anyhow to restore the whole database?
[21:21:53] <mikebronner> quick question: how can i define a variable in aggregate query that I can use to construct multiple fields in $project section? From what I can read about $let, I can only use it to create a single field, not actually use the variable across multiple fields
[22:30:20] <baegle> it's ONE property, but it's got 2 names? What is this?
[22:40:43] <humongous> Hey guys, I just switched over to a hosted replica set and now my application is slow and disconnecting a bit. is there something obvious I should look at first?