function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Jon WilberJon Wilber 

Data Storage Limit and Data Model

I have a data storage issue, and I am hoping that someone here can help.

I have a multiple Many to Many relationships between Contact and a custom object I have created in my managed package.  In my case, there are 4 relationships between contact and this custom object.  I calculated the data storage cost, and it could be very expensive in terms of cost storage, because one contact could cost 10 KB (2kb for contact, plus 8 kb for each relationship).  In calculating the storage cost for some existing users in our org, I discovered that many of them would exceed the limit.

I could squash the 4 relationships into 1 relationship to save cost; however, when I did the math on it, it did not save much for our particular use case because one relationship gets the majority of the joins.

Does anyone have any ideas on how to store large amounts of custom objects in salesforce without hitting data storage limits?