# Mapping saved data

**URL:** <https://forum.kx.com/t/mapping-saved-data/8961>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [July 15, 2014, 12:06pm UTC](https://forum.kx.com/t/mapping-saved-data/8961 "2014-07-15T12:06:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![skuvvv1](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@skuvvv1](https://forum.kx.com/u/skuvvv1)\
**Post date:** [July 15, 2014, 12:06pm UTC](https://forum.kx.com/t/mapping-saved-data/8961/1 "2014-07-15T12:06:00Z")

</div>

Hi.&nbsp;  
In my solution I’m saving data to disk from several tables independently by chunks(eg by 1m row) than clear table.

I want to map new data on disk(to make new data visible on hdb) and I can use “\l hdb”, but in this case not all tables can be exist in partition at this moment and error will occur.

Looking any advice.

---

<div class="post-metadata">

**Author:** ![skuvvv1](https://avatars.discourse-cdn.com/v4/letter/s/7ba0ec/32.png) [@skuvvv1](https://forum.kx.com/u/skuvvv1)\
**Post date:** [July 16, 2014, 2:55pm UTC](https://forum.kx.com/t/mapping-saved-data/8961/2 "2014-07-16T14:55:00Z")

</div>

For avoiding problems after “\l hdb”, I little modify save func from&nbsp;https://groups.google.com/forum/#!topic/personal-kdbplus/CGv5x9ek9yE.  
I added check for all my tables in saving partition and upsert necessary table headers.

So if I save something, I’m sure that all tables exist now.
