# Get window storage size

**URL:** <https://forum.inductiveautomation.com/t/get-window-storage-size/4601>\
**Category:** Ignition\
**Created:** [June 8, 2012, 6:56pm UTC](https://forum.inductiveautomation.com/t/get-window-storage-size/4601 "2012-06-08T18:56:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [June 8, 2012, 6:56pm UTC](https://forum.inductiveautomation.com/t/get-window-storage-size/4601/1 "2012-06-08T18:56:08Z")

</div>

I am setting up a system for inventorying all our project windows. I have it setup to log the project name,window name, and last opened date/time.

Is there a way to get the storage size of a window in a project?

I thought this might be useful for finding windows that have huge datasets in them. This would help us keep our project size down.

Thank you,

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [June 8, 2012, 6:59pm UTC](https://forum.inductiveautomation.com/t/get-window-storage-size/4601/2 "2012-06-08T18:59:47Z")

</div>

No, there isn’t anyway for you to currently do that.

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [June 11, 2012, 7:51pm UTC](https://forum.inductiveautomation.com/t/get-window-storage-size/4601/3 "2012-06-11T19:51:27Z")

</div>

A bit manual, serialize it in the designer. This would give you a relative size. Anything over a certain amount or if it suddenly jumped it size could a red flag to look deeper at the serialized XML.

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [June 14, 2012, 5:29pm UTC](https://forum.inductiveautomation.com/t/get-window-storage-size/4601/4 "2012-06-14T17:29:18Z")

</div>

If you SHIFT-Right-click on a window, you can see the window’s size under the Window Info entry.

Or in the raw settings viewer, this query will give you your window sizes.  
[tt]SELECT name AS Window\_Name,  
bit\_length(data)/1024.0 AS Window\_Size  
FROM project\_resources  
WHERE resourcetype=‘window’[/tt]

Obviously, use the raw settings viewer with EXTREME caution. If you mess up your system, you won’t get any sympathy from the techs over the phone.
