# What is the limit of upsert？

**URL:** <https://discuss.dgraph.io/t/what-is-the-limit-of-upsert/10287>\
**Category:** Dgraph\
**Tags:** dgraph, area:upsert\
**Created:** [September 11, 2020, 7:23am UTC](https://discuss.dgraph.io/t/what-is-the-limit-of-upsert/10287 "2020-09-11T07:23:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valdanito](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/valdanito/32/1381_2.png) [@Valdanito](https://discuss.dgraph.io/u/Valdanito)\
**Post date:** [September 11, 2020, 7:23am UTC](https://discuss.dgraph.io/t/what-is-the-limit-of-upsert/10287/1 "2020-09-11T07:23:59Z")

</div>

I get this error by updating 500000 nodes at once with upsert.

```auto
Raft.Ready took too long to process: Timer Total: 232ms. Breakdown: [{proposals 194ms} {disk 38ms} {advance 0s}] Num entries: 1. MustSync: true

```

my gql:

```auto
upsert {
  query { 
    var(func: eq(id,12)){
      followers(first:500000,offset:0){
        v as uid
      }
    }
  }
  mutation {
    set {
      uid(v) <dgraph.type> "12fans" .
    }
  }
}

```

dgraph version: v20.07

---

<div class="post-metadata">

**Author:** ![Valdanito](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/valdanito/32/1381_2.png) [@Valdanito](https://discuss.dgraph.io/u/Valdanito)\
**Post date:** [September 11, 2020, 9:47am UTC](https://discuss.dgraph.io/t/what-is-the-limit-of-upsert/10287/2 "2020-09-11T09:47:00Z")

</div>

Two hours later, it worked!

 ![Screen Shot 2020-09-11 at 17.45.13](https://canada1.discourse-cdn.com/flex007/uploads/dgraph/original/2X/3/331499f0cbd43143a2a81357ea2dedebbb0f3492.png)

---

<div class="post-metadata">

**Author:** ![ibrahim](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/ibrahim/32/6387_2.png) [@ibrahim](https://discuss.dgraph.io/u/ibrahim)\
**Post date:** [September 28, 2020, 7:42am UTC](https://discuss.dgraph.io/t/what-is-the-limit-of-upsert/10287/4 "2020-09-28T07:42:17Z")

</div>

@chewxy Two hours is way too long. If we can get the dataset or a way to reproduce this, we can look at it.

---

<div class="post-metadata">

**Author:** ![Valdanito](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/valdanito/32/1381_2.png) [@Valdanito](https://discuss.dgraph.io/u/Valdanito)\
**Post date:** [September 28, 2020, 8:12am UTC](https://discuss.dgraph.io/t/what-is-the-limit-of-upsert/10287/5 "2020-09-28T08:12:58Z")

</div>

I use the data [here](http://an.kaist.ac.kr/traces/WWW2010.html), This data is in CSV format.  
I’m sharing the converted [RDF file](http://minio.aasgzistio.duckdns.org:23458/dgraph/data/twitter/twitter.rdf.gz?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=gEg6Dj0T8n%2F20200928%2F%2Fs3%2Faws4_request&X-Amz-Date=20200928T081216Z&X-Amz-Expires=432000&X-Amz-SignedHeaders=host&X-Amz-Signature=a3079820e61035efc7056764a4560e53c3c06859c79344adf44bb513980a95a0) now, and my [schema](http://minio.aasgzistio.duckdns.org:23458/dgraph/data/twitter/twitter.schema?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=gEg6Dj0T8n%2F20200928%2F%2Fs3%2Faws4_request&X-Amz-Date=20200928T081050Z&X-Amz-Expires=432000&X-Amz-SignedHeaders=host&X-Amz-Signature=712b48cf39312e20b27395ec660d10585204c46e6f05d6dcbcc090e3c4bf821c)
