- SalesforceChaCha
- Posts
- ๐ Mo data, mo problems ๐บ
๐ Mo data, mo problems ๐บ
Common causes of LDV issues ๐
Good morning, Salesforce Nerds! Data is everywhere these days. Itโs one of the key elements of any application! ๐
I mean think about it. ๐ค What do your users do all day?
Create data. All day. Every day. ๐ ๐
In the application you helped design & build! ๐ช
As usual โฆ we need to be careful! ๐ซฃ
We can avoid MANY problems down the line by planning for Large Data Volume (LDV) in our orgs.
Today letโs cover the main contributors to the issues that arise from LDV! ๐ฏ

Agenda for today includes
Common causes of LDV
Daily Principle
All the Memes
Common causes of LDV
Today we will discuss -
๐ What is LDV ๐บ
๐ What to watch for ๐บ
๐ How to address it ๐บ
๐ What is LDV
The official Salesforce definition is:
A โlarge data volumeโ is an imprecise, elastic term. If your deployment has tens of thousands of users, tens of millions of records, or hundreds of gigabytes of total record storage, you have a large data volume.
So, basically, weโre talking about Salesforce orgโs that have:
๐ก 10k+ Users or
๐ก 10m+ records or
๐ก 100+ GB total record storage
Is this you? ๐ซต Will it be? ๐ค
What are some things to keep a pulse on so we can be confident our solution will stand up the scale? ๐๏ธ
๐ What to watch for
There are a few things you can proactively look into to see if your org needs a little LDV attention:
โ Object Size
Yes, I know this is rather obvious. ๐
Check the volume or data size of the SObject in Setup. โ๏ธ
There are no published numbers to validate against. ๐คท But, if youโre seeing numbers like in the previous section, youโll want to start mitigating.
โ Record Ownership
In Salesforce, every record must have an owner. โ๏ธ
This can be a single user or a queue/group of users. Salesforce uses this design for security/visibility purposes. ๐
Usually this is fine, but issues arise when 10k or more records share the same owner.
So, if you have a placeholder Account record where you place a bunch of Contacts โฆ be warned. This can come back to bite you! ๐
โ Data Skew
This means weโve associated too many child records to a parent record. โ๏ธ
Itโs a similar problem compared to the ownership skew above, but here youโll start to see more row locking. ๐
This happens when an update is happening to a child record a lock is placed on the parent record during the transaction to maintain data integrity. ๐ฅ
If you have thousands of child records rolling up under a parent start to make a plan now โฆ ๐๏ธ
๐ ๏ธ How to address it
โ Query Plan
The Developer Console contains a tool to review & evaluate the performance of queries against LDVโs. ๐ญ๏ธ
The tool helps you to optimize queries using selective filters to increase performance! ๐
Run your most important queries through it and see if youโre running the best query you can! โฉ๏ธ
โ Skinny tables
If youโve got an SObject with millions of records in it that your users need to regularly need to report off of or see in a list view them this may be what you need. ๐คฉ
These are kind of like denormalized, flat files that combine frequently used fields and remove joins from query execution at the database level. ๐๏ธ
This will take a Case submitted to the mothership! ๐ธ
โ Custom Indexes
Indexes power queries by providing a method to quickly lookup the requested data. ๐ช
Simply put, an index is a pointer to data in a table. Theyโre very similar to an index in the back of a book. ๐
If the standard indexed fields just arenโt enough for you then you can also submit a case to Salesforce and get a Custom Index created. โ๏ธ
Think ahead though โฆ there are field types you canโt do this one - checkbox, long text, currency, multi-select picklist. โ๏ธ
Daily Principle
"Anything that can be prevented, taken away, or coerced is not a personโs own - but those things that canโt be blocked are their own."
and now....Your Daily Memes



What did you think about today's newsletter? |