๐Ÿ’ƒ 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 ๐Ÿ•บ

salesforce

Job Board | ๐Ÿ’ƒ Click Here ๐Ÿ•บ

Socials | ๐Ÿ’ƒ Linkedin | Instagram | Twitter!๐Ÿ•บ

๐Ÿ“ˆ 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."

Epictetus

and now....Your Daily Memes

What did you think about today's newsletter?

Login or Subscribe to participate in polls.