# Improve Loaders: Add feature to continue a previous load

**URL:** <https://discuss.dgraph.io/t/improve-loaders-add-feature-to-continue-a-previous-load/8438>\
**Category:** Dgraph\
**Tags:** dgraph, status:accepted, kind:feature, area:usability, area:bulk-loader\
**Created:** [April 10, 2019, 8:36pm UTC](https://discuss.dgraph.io/t/improve-loaders-add-feature-to-continue-a-previous-load/8438 "2019-04-10T20:36:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [April 10, 2019, 8:36pm UTC](https://discuss.dgraph.io/t/improve-loaders-add-feature-to-continue-a-previous-load/8438/1 "2019-04-10T20:36:49Z")

</div>

**Moved from GitHub [dgraph/3279](https://github.com/dgraph-io/dgraph/issues/3279)**

_Posted by_ [MichelDiz](https://github.com/MichelDiz):

### What you wanted to do

Continue a dataset load from where it stopped, with Live Load or Bulk Load which may have been interrupted by N reasons.

### Why that wasn’t great, with examples

When an interrupt occurs. And I try to insert the load again, the load start from scratch. This is not desired result. Let’s avoid spending time rewriting something that is already in the DB.

---

<div class="post-metadata">

**Author:** ![diggy](https://yyz1.discourse-cdn.com/flex007/user_avatar/discuss.dgraph.io/diggy/32/3666_2.png) [@diggy](https://discuss.dgraph.io/u/diggy)\
**Post date:** [April 11, 2019, 4:42pm UTC](https://discuss.dgraph.io/t/improve-loaders-add-feature-to-continue-a-previous-load/8438/2 "2019-04-11T16:42:02Z")

</div>

[MichelDiz](https://github.com/MichelDiz) _commented_ :

## IMPORTANT

This issue is not just about duplicate Nodes due to a load retry. You can avoid duplicated nodes by using the --xidmap flag.

e.g:

```auto
./dgraph live -f test.rdf,other.rdf.gz -s test.schema --xidmap ./xd

```

Every time you reuse the XIDMAP mapping files, all previously mapped blank\_nodes will be automatically addressed/written to the mapped UID.

However the load will always start from scratch, even though Blank\_nodes have already been mapped. This issue is just to create a “checkpoint” feature to avoid spending days rewriting something that is already in the DB.
