# Nest Update By Id That Is Auto Generated By ElasticDb

**URL:** <https://discuss.elastic.co/t/nest-update-by-id-that-is-auto-generated-by-elasticdb/166283>\
**Category:** Elasticsearch\
**Created:** [January 30, 2019, 7:20am UTC](https://discuss.elastic.co/t/nest-update-by-id-that-is-auto-generated-by-elasticdb/166283 "2019-01-30T07:20:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Eyup\_Can\_Arslan](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/eyup_can_arslan/32/46533_2.png) [@Eyup\_Can\_Arslan](https://discuss.elastic.co/u/Eyup_Can_Arslan)\
**Post date:** [January 30, 2019, 7:20am UTC](https://discuss.elastic.co/t/nest-update-by-id-that-is-auto-generated-by-elasticdb/166283/1 "2019-01-30T07:20:15Z")

</div>

I used Nest 6.X framework to manage Elasticsearch with c# At there I shared the result of nest query.

The c# code like this

```
_elasticSearchDb.Update(DocumentPath<myElasticType>.Id("Cq2jmGgB5bes6sABU8NP"), u => u.DocAsUpsert(true).Doc(myObject));

```

I want to update a document in an index by documentId that is generated by Elasticsearch as automaticly.

At this point, I don't have any problem.

Now think that I have 1 replica and 5 shard on elasticdb.

I have a few doubt when I want to execute this update progress. For example per day I send request to elasticsearch in different time as total 5000 request at the end of the day.

At this point, Can I have any performance problem on elastic db?

**Here is the Elaastic Raw Query Request and response that genarated by Nest**

> Note: myElasticIndex and myElasticType terms used as dummny

```
Valid NEST response built from a successful low level call on POST: /myElasticIndex/myElasticType/Cq2jmGgB5bes6sABU8NP/_update
# Audit trail of this API call:
 - [1] HealthyResponse: Node: http://localhost:9200/ Took: 00:00:00.0189528
# Request:
{
  "doc_as_upsert": true,
  "doc": {
    "person": "Eyup Can ARSLAN",
    "recordDate": "2019-01-29",
    "field3": "field3 data",
    "field4": "field 4 data"
  }
}

# Response:
{
  "_index": "myElasticIndex",
  "_type": "myElasticType",
  "_id": "Cq2jmGgB5bes6sABU8NP",
  "_version": 3,
  "result": "noop",
  "_shards": {
    "total": 0,
    "successful": 0,
    "failed": 0
  }
}

```

---

<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:** [February 27, 2019, 7:20am UTC](https://discuss.elastic.co/t/nest-update-by-id-that-is-auto-generated-by-elasticdb/166283/2 "2019-02-27T07:20:17Z")

</div>

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