# \[Clarification on resource planning\]

**URL:** <https://forum.weaviate.io/t/clarification-on-resource-planning/1625>\
**Category:** General\
**Created:** [March 5, 2024, 11:07am UTC](https://forum.weaviate.io/t/clarification-on-resource-planning/1625 "2024-03-05T11:07:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fairymane](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/fairymane/32/1029_2.png) [@fairymane](https://forum.weaviate.io/u/fairymane)\
**Post date:** [March 5, 2024, 11:07am UTC](https://forum.weaviate.io/t/clarification-on-resource-planning/1625/1 "2024-03-05T11:07:35Z")

</div>

Reading this [resource planning doc](https://weaviate.io/developers/weaviate/concepts/resources#an-example-calculation) and this [post](https://forum.weaviate.io/t/how-much-resource-is-needed-for-30m-1536d-vector-records-index-with-bm25-index/1184), the calculation seems to be the total storage size needed for a example dataset instead of storing index in memory.

To clarify, based on the calculation, does it mean the complete vector is stored in memory as index (together with other overhead such max maxConnection)?

If that is the case, what data are stored in the storage, are most data in memory and storage overlap?

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [March 6, 2024, 9:05pm UTC](https://forum.weaviate.io/t/clarification-on-resource-planning/1625/2 "2024-03-06T21:05:22Z")

</div>

Hi!

That’s the total memory used. The HNSW will be stored in memory.

Those calculations in resource planning doc will show the RAM memory to have those vectors in READY shards 🙂

If your class is compressed, for example, it will load the compressed HNSW in memory (reduced memory usage), and it will now store both the original vectors and the compressed/trained ones in disk.

Depending on the configurations of your index, you can expect the storage size to be between 0.1 and 0.6 of the memory size. Because of the different configurations that will impact on the graph, it’s hard to have an assertive formula.

Again, thanks for those awesome questions 😉
