<    April 2017    >
Su Mo Tu We Th Fr Sa  
                   1  
 2  3  4  5  6  7  8  
 9 10 11 12 13 14 15  
16 17 18 19 20 21 22  
23 24 25 26 27 28 29  
30
00:08 alexi5_ joined
00:12 gentunian joined
00:36 <jellycode> Hi all, someone told me that if you query for an object ID that happens to be a child object on some other object, you get back the parent object. 1. Is this true. 2. Is it possible to just retrieve the child object all by itself? I guess it must be possible, but is there a special trick for that?
00:36 <jellycode> Example: https://codeshare.io/24YNB8
00:41 <jellycode> Oh yeah, once again my challenge is i want to do it with the linq driver
00:44 <RatelSwarm> jellycode: I tried to do it in Python, but didn't find a way.
00:45 <jellycode> So, was he correct that it returns the full parent document
00:45 <RatelSwarm> Yep, with all children.
00:46 <RatelSwarm> So your RAM might be consumed all of a sudden.
00:48 harry joined
00:49 skot joined
00:52 RatelSwarm left
00:54 <jellycode> Ok, i see, thank you.
00:54 evulish joined
01:10 gentunian joined
01:13 Soopaman joined
01:13 Soopaman joined
01:43 smokeysea joined
01:53 Soopaman joined
02:13 joshontheweb joined
02:21 joshontheweb joined
02:36 joshontheweb joined
02:49 gentunian joined
03:02 mdorenka_ joined
03:03 Gwayne joined
03:07 Soopaman joined
03:29 evulish joined
03:32 Soopaman joined
03:51 kexmex joined
04:08 DyanneNova joined
04:23 Soopaman joined
04:38 Soopaman joined
04:40 ayogi joined
04:54 smokeysea joined
05:25 preludedrew joined
05:31 lpin joined
05:33 Soopaman joined
05:51 Soopaman joined
06:37 coudenysj joined
06:37 smokeysea joined
06:44 senaps joined
06:45 senaps joined
06:46 senaps joined
06:53 rendar joined
06:53 senaps joined
06:54 armyriad joined
07:04 laroi joined
07:05 jwd joined
07:05 <laroi> Hey guys, I am trying to get two aggregate counts based on two different matches queries. Is it possible to get the result in one query using mongodb aggregation ?
07:07 coudenysj1 joined
07:08 SkyRocknRoll joined
07:15 jri joined
07:16 Folkol joined
07:30 Soopaman joined
07:41 khushildep joined
07:42 artok joined
07:42 <khushildep> Morning all. Is there a reason that 3.4 won't find the replication section in a config file? I have the replSetName: rs0 but it keeps telling me replication configuration document not found?
08:07 gfidente joined
08:22 goldfish joined
08:25 dexteruk joined
08:27 castlelore joined
08:35 hayer_ left
08:57 yeitijem joined
09:04 artok joined
09:06 aV_V joined
09:07 artok_ joined
09:08 <aV_V> isn't possible to insert random generated uuid() ?
09:08 artok joined
09:29 dump joined
09:31 SkyRocknRoll joined
10:00 sz0 joined
10:12 soosfarm joined
11:10 waits_ joined
11:10 <waits_> hi
11:11 <waits_> how can I use find to search for documents which have at least a certain number of entries for a given object ? basically "objName": { 'key': 'val', 'key2': 'val2' } this has two.
11:15 fels joined
11:20 smokeysea joined
11:38 harry joined
12:00 VeeWee joined
12:14 edrocks joined
12:27 artok joined
12:48 jr3 joined
13:01 joshontheweb joined
13:02 ramortegui joined
13:21 trevor joined
13:27 artok joined
13:27 kexmex joined
13:35 gentunian joined
13:42 smokeysea joined
13:50 hillct joined
13:55 re1 joined
14:00 geoffb joined
14:07 felixjet joined
14:15 felixjet joined
14:26 DyanneNova joined
14:29 ssarah joined
14:31 Soopaman joined
14:37 malorie joined
14:38 <malorie> hi all. I'm trying to add an id to every "subdocument" upon inserting a document into my collection. is there an easy way to do this?
14:41 <malorie> e.g.: I'm adding { 'bla': { 'foo': 'bar' } }, and the outermost object get's an _id, but I want the inner object to get an id also
14:42 smokeysea joined
14:45 culthero joined
14:48 okapi joined
14:50 <Derick> malorie: there is no such thing as an "inner document", they're just rich data types
14:50 <Derick> and these "subdocuments" don't exist outside of the larger document
14:52 <malorie> hence the "s
14:53 <Derick> the ?
14:53 <malorie> the quotation marks, I meant
14:53 jr3_ joined
14:54 <malorie> I basically want to have id's for all sub-objects (and sub-sub-objects, etc)
14:55 <malorie> so I can reference them from another document, for example
14:56 <Alan> this sounds a lot like you're trying to represent an entire tree as a single document instead of a relationship between documents...
14:58 <Derick> malorie: you will need to do that yourself then
14:58 stalled joined
14:58 <Derick> but it does sound like a strange schema design
15:00 <malorie> well, I'm trying to build a small type-system on top of mongo with references
15:01 <malorie> but frankly I'm not sure yet, how I'll go about implementing references...
15:01 <malorie> so this approach came to mind
15:04 smokeysea joined
15:04 coudenysj joined
15:05 <Derick> what's a "type-system on top of mongo" ?
15:05 coudenysj joined
15:06 coudenysj joined
15:06 <malorie> do you know contentful, the headless, api-first cms?
15:06 <Derick> no
15:07 coudenysj joined
15:07 <malorie> it allows you to define types, and make entries for those types, basically
15:07 <malorie> which you then can retrieve from the api
15:07 pxed joined
15:07 coudenysj joined
15:08 malorie_ joined
15:10 <Derick> malorie: in MongoDB, a type would just be instanciated as a single document surely?
15:11 Wulf joined
15:12 malorie__ joined
15:12 <Wulf> Good Morning
15:13 <Wulf> I've got a problem with a mongodb installation. Sometimes the cpu goes to 100%, with a load of about 90. At the same time the disk becomes unresponsive, yet there is no I/O wait. What may be causing this?
15:13 <malorie> Derick: sorry, I got disconnected
15:18 theblackbox joined
15:19 <theblackbox> hello all, I'm attempting to hit my DB with a find and modify query that _should_ upsert if there is no match but I just get an error
15:20 <theblackbox> I'm wondering if what I'm attempting is possible
15:21 <theblackbox> it would seem so from the docs, whereas in practice it does not seem to want to play ball - complains about the "positional operator did not find the match needed from the query"
15:21 <theblackbox> which is exactly the case I would have expected to have triggered the upsert, no?
15:23 aV_V joined
15:24 AvianFlu joined
15:26 artok joined
15:49 felixjet joined
15:53 svm_invictvs joined
16:02 orbyt_ joined
16:03 evulish joined
16:21 DyanneNova joined
16:25 blizzow joined
16:31 coudenysj joined
16:32 coudenysj joined
16:33 coudenysj joined
16:33 svm_invictvs joined
16:33 coudenysj joined
16:34 coudenysj joined
16:58 kexmex joined
17:01 coudenysj joined
17:01 darkfrog joined
17:02 <darkfrog> are there any good tutorials giving good querying examples?
17:02 <darkfrog> specifically coming from a SQL background and working with joins.
17:05 <darkfrog> chatty group
17:07 felixjet joined
17:10 felixjet_ joined
17:19 darkfrog_ joined
17:25 felixjet joined
17:32 philipballew joined
17:33 silenced joined
17:49 silenced joined
17:50 felixjet_ joined
17:53 <jellycode> lol @ darkfrog, i know
18:03 Sasazuka joined
18:07 Soopaman joined
18:10 coudenysj joined
18:11 AvianFlu joined
18:20 Sasazuka__ joined
18:31 felixjet joined
18:40 Soopaman joined
18:53 artok joined
19:09 joshontheweb joined
19:20 Soopaman joined
19:23 byahbyah joined
19:24 silenced joined
19:24 <byahbyah> sup dudes, i'm trying to read data from my db via nodejs. how would i console.log the data instead of the entire db object?
19:25 rendar joined
19:25 rendar joined
19:46 jr3 joined
19:48 edrocks joined
19:54 felixjet_ joined
19:56 gentunian joined
20:03 jellycode joined
20:18 evulish joined
20:20 gundamxxg joined
20:30 re1_ joined
20:47 silenced joined
20:50 iomonad joined
20:56 evulish joined
21:31 druonysus_ joined
21:51 druonysus_ joined
22:05 okapi joined
22:06 felixjet joined
22:10 silenced joined
22:13 Soopaman joined
22:17 giok joined
22:31 shackra joined
23:00 kexmex joined
23:02 edrocks joined
23:04 evulish joined
23:11 xaep joined
23:20 philipballew joined
23:33 xaep joined
23:37 orbyt_ joined