# Is there a way to sync the database to the current tags

**URL:** <https://forum.inductiveautomation.com/t/is-there-a-way-to-sync-the-database-to-the-current-tags/17272>\
**Category:** Ignition\
**Created:** [March 8, 2018, 5:50am UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-sync-the-database-to-the-current-tags/17272 "2018-03-08T05:50:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [March 8, 2018, 5:50am UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-sync-the-database-to-the-current-tags/17272/1 "2018-03-08T05:50:01Z")

</div>

so I think some of the database entries were nuked that linked tag paths to id’s in the db. Is there anyway to have the historian sync back up? Thanks

---

<div class="post-metadata">

**Author:** ![codersmurf](https://avatars.discourse-cdn.com/v4/letter/c/df788c/32.png) [@codersmurf](https://forum.inductiveautomation.com/u/codersmurf)\
**Post date:** [March 9, 2018, 5:20am UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-sync-the-database-to-the-current-tags/17272/2 "2018-03-09T05:20:31Z")

</div>

I’ve tried looking for inserts in the logs, but the values are all ‘?’, Im assuming I would get some type of error a tag with history didn’t have an entry in the sqlth\_te table, is this correct? Our database got way too big, over 300Gb, been trying to clean it up for over a week, delete statements take hours sometimes when run on the monthly tables. Thanks
