# Adding annotations to large stored MatrixTable

**URL:** <https://discuss.hail.is/t/adding-annotations-to-large-stored-matrixtable/1012>\
**Category:** Hail Query & hailctl\
**Created:** [July 8, 2019, 5:11pm UTC](https://discuss.hail.is/t/adding-annotations-to-large-stored-matrixtable/1012 "2019-07-08T17:11:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![awblocker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/awblocker/32/283_2.png) [@awblocker](https://discuss.hail.is/u/awblocker)\
**Post date:** [July 8, 2019, 5:11pm UTC](https://discuss.hail.is/t/adding-annotations-to-large-stored-matrixtable/1012/1 "2019-07-08T17:11:30Z")

</div>

In our use case, we have a large (10TiB+) MatrixTable saved to blob storage. We would like to update it by adding row and column annotations in subsequent stages, saving them back to the original MatrixTable to avoid duplicating the (large) genotype entries. Is this viable with the current design, or would be it better to maintain separate keyed Tables in storage and join them in in subsequent stages of our analysis workflow?

---

<div class="post-metadata">

**Author:** ![tpoterba](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/tpoterba/32/61_2.png) [@tpoterba](https://discuss.hail.is/u/tpoterba)\
**Post date:** [July 8, 2019, 5:13pm UTC](https://discuss.hail.is/t/adding-annotations-to-large-stored-matrixtable/1012/2 "2019-07-08T17:13:29Z")

</div>

> [@awblocker](#):
>
> would be it better to maintain separate keyed Tables in storage and join them in in subsequent stages of our analysis workflow

this is definitely the thing to do. Currently there are no plans to make it possible to support in-place updates to MatrixTable/Table files, so storing separate variant/sample metadata as tables and joining when necessary is the most efficient option.

---

<div class="post-metadata">

**Author:** ![awblocker](https://yyz2.discourse-cdn.com/flex036/user_avatar/discuss.hail.is/awblocker/32/283_2.png) [@awblocker](https://discuss.hail.is/u/awblocker)\
**Post date:** [July 8, 2019, 5:14pm UTC](https://discuss.hail.is/t/adding-annotations-to-large-stored-matrixtable/1012/3 "2019-07-08T17:14:04Z")

</div>

Got it. Thanks for the rapid reply.
