# How to optimize the storage in QS

**URL:** <https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552>\
**Category:** Q&A\
**Tags:** calculations, Business-Intelligence-Engineer, quick-sight\
**Created:** [May 28, 2024, 6:53am UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552 "2024-05-28T06:53:17Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![achourey](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@achourey](https://community.amazonquick.com/u/achourey)\
**Post date:** [May 28, 2024, 6:53am UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552/1 "2024-05-28T06:53:18Z")

</div>

Hi All,

In QS if with create the dataset using start schema model like multiple dimensions and fact table then QS will take too much storage as compare to power bi.

In QS if we join the 1 fact table with 3-dimension table then it will create a master table using all these 4 tables, and if we have fact table with huge data then unnecessarily the bcoz of the dimension tables it will increase the data set size.

can anyone tell me what is the best model for QS and how to optimize the storage in QS.

---

<div class="post-metadata">

**Author:** ![Naveed](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/naveed/32/961_2.png) [@Naveed](https://community.amazonquick.com/u/Naveed)\
**Post date:** [May 28, 2024, 7:22am UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552/2 "2024-05-28T07:22:47Z")

</div>

Hi,

First of all you can exclude those column not being used in you dataset and check your join condition. Big table should be the first table and use the left joins for other tables.  
Rest it depends on you data model.

if the you getting your data from a database, you Create view in database. Finally get data into QS this will use les storage memory.

Storage cost is very low in SPICE 🙂

Regards,  
Naveed Ali

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [May 28, 2024, 11:23am UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552/3 "2024-05-28T11:23:32Z")

</div>

Hi @achourey - When you are talking about storage in QS, it refers to SPICE storage only. If your final data set is SPICE based, I believe one of the potential area to reduce or remove the column which is not require for your reporting. Most of the cases I saw SPICE limit hit on the basis of number of rows not size.

When you are comparing the size of the data w.r.t power BI, do you have any stats. Please share it, as per my understanding SPICE store the data optimally compressed format in the backend.

Regards - Sanjeeb

---

<div class="post-metadata">

**Author:** ![achourey](https://avatars.discourse-cdn.com/v4/letter/a/2acd7d/32.png) [@achourey](https://community.amazonquick.com/u/achourey)\
**Post date:** [May 28, 2024, 3:11pm UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552/4 "2024-05-28T15:11:52Z")

</div>

@Sanjeeb2022  
I have implemented same report in power bi as well as in QS.

I have around 55 million records in my data set where power bi took ~4 GB space for dataset and QS took ~30 GB space.

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [May 28, 2024, 3:41pm UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552/5 "2024-05-28T15:41:57Z")

</div>

Hi @achourey - Thanks for the details.  
Hi @Koushik_Muthanna @Ramon_Lopez - Can you please highlight this to internal team of QS. We are expecting QS should compress the file while loading to SPICE. There is a huge difference in size compare to power BI. It will be helpful if internal team can have a look on this please.

Hi @Kristin - just fyi.

Regards - Sanjeeb

---

<div class="post-metadata">

**Author:** ![Ramon\_Lopez](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/ramon_lopez/32/2738_2.png) [@Ramon\_Lopez](https://community.amazonquick.com/u/Ramon_Lopez)\
**Post date:** [May 28, 2024, 4:23pm UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552/6 "2024-05-28T16:23:39Z")

</div>

Hi All

Quick Sight when storing data in SPICE is optimizing for Performance. This entails fast query times and support to scale for many users. Data is not compressed and due to focus on performance (columnar data store). This can be very noticeable when working with Parquet files. This is by design.

To reduce size focus should be placed on columns that contain large and varying strings. Any efforts to trim and eliminate unnecessary columns will impact the size it consumes.

Some info from our docs - [Importing data into SPICE - Amazon QuickSight](https://docs.aws.amazon.com/quicksight/latest/user/spice.html)

Thanks,  
Ramon Lopez

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [May 29, 2024, 3:22am UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552/8 "2024-05-29T03:22:30Z")

</div>

Thank you @Ramon_Lopez . Out of curiosity, the data loading size is decreased a lot in Power BI compare Quick Sight. See the notes from @achourey  
“I have around 55 million records in my data set where power bi took ~4 GB space for dataset and QS took ~30 GB space”

This is bit surprise for me. Any idea on this?

Regards - Sanjeeb

---

<div class="post-metadata">

**Author:** ![Ramon\_Lopez](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/ramon_lopez/32/2738_2.png) [@Ramon\_Lopez](https://community.amazonquick.com/u/Ramon_Lopez)\
**Post date:** [May 29, 2024, 3:50pm UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552/9 "2024-05-29T15:50:16Z")

</div>

@Sanjeeb2022 I’ve seen this before. Likely due to limitations on client capacity they have spent considerable effort to compress the dataset when saving to disk. This has an impact on performance. We don’t do that.

---

<div class="post-metadata">

**Author:** ![Sanjeeb2022](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/sanjeeb2022/32/20947_2.png) [@Sanjeeb2022](https://community.amazonquick.com/u/Sanjeeb2022)\
**Post date:** [May 30, 2024, 3:07am UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552/10 "2024-05-30T03:07:25Z")

</div>

Thanks @Ramon_Lopez for providing this insight.

Regards - Sanjeeb

---

<div class="post-metadata">

**Author:** ![Xclipse](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/xclipse/32/20455_2.png) [@Xclipse](https://community.amazonquick.com/u/Xclipse)\
**Post date:** [June 1, 2024, 1:32am UTC](https://community.amazonquick.com/t/how-to-optimize-the-storage-in-qs/30552/11 "2024-06-01T01:32:19Z")

</div>

Archived on June 1, 2024, 1:32am UTC


