# If I had user has number of nested obj then what is our server architecture

**URL:** <https://discuss.elastic.co/t/if-i-had-user-has-number-of-nested-obj-then-what-is-our-server-architecture/21362>\
**Category:** Elasticsearch\
**Created:** [December 23, 2014, 5:47am UTC](https://discuss.elastic.co/t/if-i-had-user-has-number-of-nested-obj-then-what-is-our-server-architecture/21362 "2014-12-23T05:47:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sandeep\_kaushal\_verm](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@sandeep\_kaushal\_verm](https://discuss.elastic.co/u/sandeep_kaushal_verm)\
**Post date:** [December 23, 2014, 5:47am UTC](https://discuss.elastic.co/t/if-i-had-user-has-number-of-nested-obj-then-what-is-our-server-architecture/21362/1 "2014-12-23T05:47:26Z")

</div>

Current server architecture/configuration

1 Master Node (m3.large)  
1 Search Node (m3.large)  
3 Data Node (c3.xlarge)

20 shard

user has 6 nested obj  
{  
"user" : {  
"dynamic\_templates" : [  
{  
"string\_template" : {  
"match" : "\*",  
"match\_mapping\_type" : "string",  
"mapping" : {  
"type" : "string",  
"index" : "analyzed",  
"analyzer":"string\_lowercase"  
}  
}

```
     }                                                         
   ],
   "_routing": {"required": true, "path": "userId"},
   "properties":{
       "userId":{"type":"long"},
       "prop": {"type": "nested"}
       ,"campaign": {"type": "nested"},
       "category": {"type": "nested"},
       "product": {"type": "nested"},
       "brand": {"type": "nested"},
       "event": {"type": "nested"}
       
   }
   }
   
}     

```

Also set heap Size configuration and other ulimit  
What i m doing wrong That I m getting let response from response

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a644d931-3a98-4cd1-95c1-d88d755c6dfc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a644d931-3a98-4cd1-95c1-d88d755c6dfc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 23, 2014, 10:28pm UTC](https://discuss.elastic.co/t/if-i-had-user-has-number-of-nested-obj-then-what-is-our-server-architecture/21362/2 "2014-12-23T22:28:29Z")

</div>

Your email is a little unclear.  
What exactly is the problem?

On 23 December 2014 at 16:47, sandeep kaushal verma \<  
[sandeepkaushalverma@gmail.com](mailto:sandeepkaushalverma@gmail.com)\> wrote:

> Current server architecture/configuration
> 
> 1 Master Node (m3.large)  
> 1 Search Node (m3.large)  
> 3 Data Node (c3.xlarge)
> 
> 20 shard
> 
> user has 6 nested obj  
> {  
> "user" : {  
> "dynamic\_templates" : [  
> {  
> "string\_template" : {  
> "match" : "\*",  
> "match\_mapping\_type" : "string",  
> "mapping" : {  
> "type" : "string",  
> "index" : "analyzed",  
> "analyzer":"string\_lowercase"  
> }  
> }
> 
> ```
> }
> ],
> "_routing": {"required": true, "path": "userId"},
> "properties":{
> "userId":{"type":"long"},
> "prop": {"type": "nested"}
> ,"campaign": {"type": "nested"},
> "category": {"type": "nested"},
> "product": {"type": "nested"},
> "brand": {"type": "nested"},
> "event": {"type": "nested"}
> 
> }
> }
> 
> }
> 
> ```
> 
> Also set heap Size configuration and other ulimit  
> What i m doing wrong That I m getting let response from response
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/a644d931-3a98-4cd1-95c1-d88d755c6dfc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a644d931-3a98-4cd1-95c1-d88d755c6dfc%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/a644d931-3a98-4cd1-95c1-d88d755c6dfc%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a644d931-3a98-4cd1-95c1-d88d755c6dfc%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-Gx%2B0LPdsh0nE1f5spZNBjF38YVy75%3DwQyCvi-cLUAMg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X-Gx%2B0LPdsh0nE1f5spZNBjF38YVy75%3DwQyCvi-cLUAMg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![sandeep\_kaushal\_verm](https://avatars.discourse-cdn.com/v4/letter/s/4491bb/32.png) [@sandeep\_kaushal\_verm](https://discuss.elastic.co/u/sandeep_kaushal_verm)\
**Post date:** [December 24, 2014, 1:37pm UTC](https://discuss.elastic.co/t/if-i-had-user-has-number-of-nested-obj-then-what-is-our-server-architecture/21362/3 "2014-12-24T13:37:56Z")

</div>

I have a user document

User has n properties of his own which is around 200. User has few nested  
properties like his activities, products, brands etc.

Case I, If I put all data in flat way, not creating any nested objects, it  
increases index properties size to around 50K.

Case II, If I put all data in nested objects, it increases no of Document  
to around 300 per user. In this case total documents grows in billions.

Case III, If I take mixed approach, It will make index properties size of  
around 500 and few nested objects. Here document size of user is around 45.

I have to take decision on choosing best way on above.

I appreciate if you suggest any other way which is appropriate in my  
situation.

On Wednesday, 24 December 2014 03:58:58 UTC+5:30, Mark Walkom wrote:

> Your email is a little unclear.  
> What exactly is the problem?
> 
> On 23 December 2014 at 16:47, sandeep kaushal verma \<  
> [sandeepka...@gmail.com](mailto:sandeepka...@gmail.com) \<javascript:\>\> wrote:
> 
> > Current server architecture/configuration
> > 
> > 1 Master Node (m3.large)  
> > 1 Search Node (m3.large)  
> > 3 Data Node (c3.xlarge)
> > 
> > 20 shard
> > 
> > user has 6 nested obj  
> > {  
> > "user" : {  
> > "dynamic\_templates" : [  
> > {  
> > "string\_template" : {  
> > "match" : "\*",  
> > "match\_mapping\_type" : "string",  
> > "mapping" : {  
> > "type" : "string",  
> > "index" : "analyzed",  
> > "analyzer":"string\_lowercase"  
> > }  
> > }
> > 
> > ```
> > }                                                         
> > ],
> > "_routing": {"required": true, "path": "userId"},
> > "properties":{
> > "userId":{"type":"long"},
> > "prop": {"type": "nested"}
> > ,"campaign": {"type": "nested"},
> > "category": {"type": "nested"},
> > "product": {"type": "nested"},
> > "brand": {"type": "nested"},
> > "event": {"type": "nested"}
> >        
> > }
> > }
> >    
> > }     
> > 
> > ```
> > 
> > Also set heap Size configuration and other ulimit  
> > What i m doing wrong That I m getting let response from response
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/a644d931-3a98-4cd1-95c1-d88d755c6dfc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a644d931-3a98-4cd1-95c1-d88d755c6dfc%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/a644d931-3a98-4cd1-95c1-d88d755c6dfc%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a644d931-3a98-4cd1-95c1-d88d755c6dfc%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/0c1ccbba-4f24-43d1-b7db-178b161a2cac%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/0c1ccbba-4f24-43d1-b7db-178b161a2cac%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 12:42am UTC](https://discuss.elastic.co/t/if-i-had-user-has-number-of-nested-obj-then-what-is-our-server-architecture/21362/4 "2017-07-06T00:42:03Z")

</div>


