# Implementing Cold Storage

**URL:** <https://forum.inductiveautomation.com/t/implementing-cold-storage/83169>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [December 14, 2023, 9:00pm UTC](https://forum.inductiveautomation.com/t/implementing-cold-storage/83169 "2023-12-14T21:00:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shawn\_Rieger](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shawn_rieger/32/46336_2.png) [@Shawn\_Rieger](https://forum.inductiveautomation.com/u/Shawn_Rieger)\
**Post date:** [December 14, 2023, 9:00pm UTC](https://forum.inductiveautomation.com/t/implementing-cold-storage/83169/1 "2023-12-14T21:00:25Z")

</div>

Hello! Our database is nearing 16TB (in about 3-4 months), and we need to pull some data out into cold storage. We must retain the ability to query and possibly even trend this data in the future. I'm assuming we could set up a cold storage-only gateway for this purpose.

Does anyone have any pointers or suggestions on how we can achieve this?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 14, 2023, 9:06pm UTC](https://forum.inductiveautomation.com/t/implementing-cold-storage/83169/2 "2023-12-14T21:06:38Z")

</div>

There are a number of tools in various databases that have native partitioning support that can seamlessly query different kinds of inner tables. And then you can use a number of techniques to transform old partitions into read-only, highly compressed tables. (I've played with, but not deployed, the PostgreSQL column-store archive table type for just this purpose. Lots of interesting capabilities mixed into the Foreign Data Wrappers technology.)

But whatever brand of DB you are using, investigate its native partitioning capabilities.

(Time-series data that has been re-organized into grouped data under the covers can often be losslessly compressed 10x or more.)

---

<div class="post-metadata">

**Author:** ![Shawn\_Rieger](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shawn_rieger/32/46336_2.png) [@Shawn\_Rieger](https://forum.inductiveautomation.com/u/Shawn_Rieger)\
**Post date:** [December 15, 2023, 3:28pm UTC](https://forum.inductiveautomation.com/t/implementing-cold-storage/83169/3 "2023-12-15T15:28:12Z")

</div>

Thanks. We are currently using Microsoft SQL Server.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 15, 2023, 3:37pm UTC](https://forum.inductiveautomation.com/t/implementing-cold-storage/83169/4 "2023-12-15T15:37:37Z")

</div>

My condolences.

---

<div class="post-metadata">

**Author:** ![Shawn\_Rieger](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/shawn_rieger/32/46336_2.png) [@Shawn\_Rieger](https://forum.inductiveautomation.com/u/Shawn_Rieger)\
**Post date:** [December 15, 2023, 3:47pm UTC](https://forum.inductiveautomation.com/t/implementing-cold-storage/83169/5 "2023-12-15T15:47:44Z")

</div>

Haha, well, that doesn't make me feel confident at all 🙂

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [December 15, 2023, 4:01pm UTC](https://forum.inductiveautomation.com/t/implementing-cold-storage/83169/6 "2023-12-15T16:01:38Z")

</div>

It isn't an accident that Amazon's Redshift, Google's AlloyDB, and Timescale are all built on top of PostgreSQL technology. Microsoft SQL Server is feel-good technology for IT dinosaurs, IMNSHO.
