[00:08:02] <Patteh> i define my models and schemas in one file
[00:08:16] <Patteh> and try to start a restful server api in another
[00:08:28] <Patteh> but the server file cannot see the model definition
[00:08:45] <Patteh> even though i have required it
[00:13:04] <Boomtime> hi Patteh, are you in the right channel? if you asking about using mongodb with a specific library you should mention what the library is, somebody may be able to help you
[00:16:47] <Patteh> mongoose is what i've used to model
[00:17:08] <Patteh> but it is perhaps a more general question about sharing model definitions between modules
[00:18:56] <Patteh> as you cannot define it twice, does anyone have a method for sharing a single definition?
[00:19:02] <Patteh> i cannot make module.exports work
[00:19:26] <Boomtime> ok, your question is about Node.js
[00:22:52] <Boomtime> Patteh, you may have better luck asking in #Node.js, although someone here might know, your question is more likely to be answered there
[04:36:16] <capleton> This is probably a noob question... but how do i get the property of an element in an array? For example, if i want to return the "status" field of a subdocument... how do i get that?
[04:36:45] <capleton> I can narrow it down to that paricular document, but i don't know how to get the value of one of the fields
[04:57:04] <capleton> In case you're wondering why, i'm trying to make sure that the element selected is not active before another mongodb operation writes to it
[05:18:42] <_rht> but i am using mongo db c# driver
[05:19:44] <_rht> same issue as -> http://stackoverflow.com/questions/8063323/how-to-save-date-properly/8064980#8064980
[05:20:09] <_rht> but that solution not working for me
[05:21:13] <morenoh149> _rht: but hardly anyone here would know the c# syntax to help you
[05:22:56] <Boomtime> _rht: what do you mean "to store my date as local date"? 'local' is an entirely client-side condition, all datetimes are stored as UTC at the server
[05:23:15] <Boomtime> your datetime will be preserved as whatever you supply
[06:06:05] <joannac> that would suggest you're nesting too deep
[06:07:53] <vagueBrother> should i just have a collection for shows and a collection with episodes?
[06:08:01] <vagueBrother> what if i need info from both collections at the same time
[06:08:32] <vagueBrother> i want to keep them associated with each other so when i look up an episode, i have all this other great info
[06:12:23] <joannac> that's well and good except you're having trouble finding an episode, no?
[06:14:55] <vagueBrother> well i can’t tell if it’s because i’m nesting too deep or if i suck at querying
[06:15:00] <vagueBrother> i have the episode ID always
[06:49:38] <TheAncientGoat> Anyone know a way to fix broken ObjectID's eg a plain object with only a _str field in a $match query?
[10:18:49] <okanck> hello, im trying to add a shard but I got an error: couldn't connect to new shard socket exception [CONNECT_ERROR] for shard1.example.com
[10:19:04] <okanck> i tried to add the shard with IP but it didn't work
[11:34:03] <okanck> joannac: i solved the problem. but when i close the ssh windows and try to connect to query server and wanna see the sh.status() it says that printShardingStatus: this db does not have sharding enabled. be sure you are connecting to a mongos from the shell and not to a mongod.
[15:24:52] <Sticky> I just did a 2.4->2.6 upgrade, after the upgrade the users that were previously present now seem missing. http://docs.mongodb.org/manual/release-notes/2.6-upgrade/ seems to claim that users should continue to work after the upgrade. Anyone any idea what could be causing this?
[16:44:56] <eboqu> hey, anyone knows if it is possible to backup a mongodb database situated on a windows azure vm using MMS?
[18:25:06] <Streemo> is there something like findRandomOne that doesn't make me fetch the entire array from the cursor?
[18:58:40] <okanck> is there any connection limit on mongo?
[18:59:22] <cheeser> limits of the hardware and/or 20000 iirc
[18:59:38] <cheeser> i.e., you'd have to have a bug to hit it
[19:07:39] <okanck> I've switched to sharded cluster. when I wanna list the data on php, i get error almost all requests, the errors: "Read timed out after reading 0 bytes, waited for 30.000000 seconds" or "Remote server has closed the connection "
[21:08:50] <robo_> maybe an issue with chai then -
[21:17:26] <Synt4x`> so I'm using somebody else's DB and it has a very weird format, there is a big list, each element is a single dict with the same key value, and different value pairs... it looks like [ {game : gameID}, {game : gameID}, {game : gameID}, ... ]
[21:17:43] <Synt4x`> I'm trying to see if the gameID I have is currently in that list... what's the best way of doing so?
[21:40:49] <mike_edmr> but maybe someone else can answer here
[21:40:56] <StephenLynx> indeed. but I wondered if anyone here had experience with that, since mongo has not updated it's daemon scripts for systemD distros.
[21:41:06] <buzzalderaan> curious if you could write a simple systemd service script for mongodb then tie your app to that, but i like mike_edmr says, probably a better question for systemd
[21:45:36] <mike_edmr> arch apparently has a script in its mongo package
[21:45:53] <mike_edmr> take a look at the one on this page: https://gist.github.com/mbj/1605894
[21:46:40] <mike_edmr> the key is those wants= after= to get your app to start up after mongo
[21:47:03] <mike_edmr> assuming you can make the app run as a service too
[21:51:24] <StephenLynx> yes, my app already is a service
[21:51:39] <StephenLynx> and thanks for that, It may prove useful as a last resort
[21:52:17] <StephenLynx> if I am unable to make my app a dependency of the sysvinit service, I will remove the mongo sysvinit service and replace by this systemd service
[22:54:25] <pkaeding> hi all, I'm noticing my logs filling up with messages like `connection accepted from 127.0.0.1:40185 #20593353 (77 connections now open)`, and I want to turn down the verbosity. I think `systemLog.verbosity` is the config parameter I need, but I can't find any docs explaining what is included in each level (or what the default level is)
[23:12:48] <regreddit> what you do is update the transaction collection with the new values, then update the original collection with those calculated values, then delete the transaction values
[23:13:25] <regreddit> that way the original data is never updated until all the results are calculatedd
[23:13:39] <regreddit> which im assuming is the time consuming part
[23:59:52] <AlecTaylor> Is Spark the right option as an alternative to MongoDB + Mahout via HDFS? - http://stackoverflow.com/a/27772606/587021