# @normalize limit - override?

**URL:** https://discuss.dgraph.io/t/normalize-limit-override/5200
**Category:** Users
**Created:** [October 7, 2019, 2:32pm UTC](https://discuss.dgraph.io/t/normalize-limit-override/5200 "2019-10-07T14:32:57Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![mikehawkes](https://avatars.discourse-cdn.com/v4/letter/m/a4c791/32.png) [@mikehawkes](https://discuss.dgraph.io/u/mikehawkes)
#### Post date: [October 7, 2019, 2:32pm UTC](https://discuss.dgraph.io/t/normalize-limit-override/5200/1 "2019-10-07T14:32:57Z")

</div>

I’m using @normalize to flatten a large data set - and suddenly found it has a hard limit of 10,000 records. Can I ask why there’s such a limit - can I remove the limit entirely? It seems crazy that I can return a nested dataset of unlimited size and flatten in my own code, whereas I can’t use the function built in to Dgraph that appears to exist for exactly this purpose.

---

<div class="post-metadata">

### Author: ![MichelDiz](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/micheldiz/32/11873_2.png) [@MichelDiz](https://discuss.dgraph.io/u/MichelDiz)
#### Post date: [October 7, 2019, 5:14pm UTC](https://discuss.dgraph.io/t/normalize-limit-override/5200/2 "2019-10-07T17:14:31Z")

</div>

In general you can set in the root query a param “first: 10000000” so you can overcome some limits. But in the case of normalize, the Alpha has a flag for it.

run:

```auto
dgraph alpha --help | grep normalize
 normalize_node_limit uint Limit for the maximum number of nodes that can 
be returned in a query that uses the normalize directive. (default 10000)

```

So you need to set the Alpha flag to  
`--normalize_node_limit 10000000`

Cheers.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/2/2b38fdece2abe5814f2e51bee69d1e67fc304b0a.png) [@system](https://discuss.dgraph.io/u/system)
#### Post date: [November 6, 2019, 5:14pm UTC](https://discuss.dgraph.io/t/normalize-limit-override/5200/3 "2019-11-06T17:14:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
