SlideShare a Scribd company logo
Handling of Large Data by Salesforce
Agenda
1. Overview
2. Handling of Large data by Salesforce
• The Underlying Concept
• Infrastructure – Salesforce Components and Capabilities
3. Techniques for Optimizing Performance
4. Best Practices
5. Case Studies
Overview
 Salesforce automatically enables customers to easily scale their applications up from small to large
amounts of data.
 Ho e e if the e s la ge data olu e, ti e e ui ed fo e tai p o esses ight g o .
 The processing time is dependent upon the architecture and the design of the application.
 Main Processes that gets affected.
 Loading/Uploading large number of records.
 Extraction of data through Reports/Dashboards, List Views.
 Strategy for optimizing the processes
 Following industry-standard practices for accommodating schema changes and operations in database-enabled applications.
 Deferring or bypassing business rule and sharing processing.
 Choosing the most efficient operation for accomplishing a task.
Underlying Concept and Infrastructure
HOW DOES SALESFORCE
HANDLE LARGE DATA?
The Underlying Concept
• Multitenancy is a means of providing a single application
to multiple organizations.
• Multitenancy requires that applications behave reliably,
even when architects are making Salesforce-supported
customizations.
• When organizations create custom objects, the platform
tracks metadata about the objects and their fields,
relationships, and other object definition characteristics.
See the diagram below:
• As a customer, the SQL underlying many application
operations cannot be modified as it is generated by the
system, not written by each tenant.
Multitenancy of Metadata
• Search is the capability to query records based on free-
form text.
• Salesforce Search Architecture is based on its own data
which makes it easier to search.
• For data to be searched, it has to be indexed.
• Salesforce Search Capabilities.
– The sidebar
– Advanced and global searches
– Find boxes and lookup fields
– Suggested Solutions and Knowledge Base
– Web-to-Lead and Web-to-Case
– Duplicate lead processing
– Salesforce Object Search Language (SOSL) for
Apex and the API
Search Architecture
Infrastructure – Salesforce Components and Capabilities
Force.com Query Optimizer
• Helps the data ase s ste s opti ize p odu e
effective execution plans for Salesforce queries.
• Works on automatically generated queries to
handle reports, list views, and both SOQL
queries and the other queries that piggyback on
them.
• The platform must keep its own set of statistical
information to help the database understand the
best way to access the data.
• As a result, when large amounts of data are
created, updated, or deleted using the API, the
database must gather statistics before the application
can efficiently access data.
Indexes Index Tables
• The Salesforce multitenant architecture
makes the underlying data table for custom
fields unsuitable for indexing.
• To overcome this limitation, the platform
creates an index table that contains a copy of
the data, along with information about the data
types.Skinny Tables
Database Statistics
Salesforce supports custom indexes
to speed up queries, and one can
create custom indexes by contacting
Salesforce Customer Support.
• Salesforce creates skinny tables to contain
frequently used fields and to avoid joins, and it
keeps the skinny tables in sync with their source
tables when the source tables are modified.
• Can be created on custom objects, and on
Account, Contact, Opportunity, Lead, and Case
objects.
Divisions are a means of partitioning the data
of large deployments to reduce the number
of records returned by queries and reports.
Divisions
Techniques for Optimizing Performance
Using
Mashups
Defer
Sharing
Calculation
Deleting
Data
Search
Data
Archiving
BEST PRACTICES
Best Practices
BEST PRACTICES
Reporting
• Reduce number records to query-use value in data to segment query.
• Reduce number of objects queried and number of relationships use to generate the report.
• Reduce number of fields queried- only add fields to a report , list view, or SOQL query that is required.
• Reduce amount of data by archiving unused records.
• Use report filter that emphasize the use of standard or custom indexed fields.
Loading Data
from the API
• Use the Salesforce Bulk API when you have more than a few hundred thousand records.
• Use the fastest operation possible-—insert() is fastest, update() is next, and upsert() is next after that.
• Ensure that data is clean before loading when using the Bulk API.
• When updating, send only fields that have changed.
• For custom integrations : Authenticate once per load, not on each record.
• If possible for initial loads, populate roles before populating sharing rules.
• When changing child records, group them by parent.
• When using the SOAP API, use as many batches as possible.
Extracting
Data from the
API
• Use the getUpdated() and getDeleted() SOAP API to sync an external system with Salesforce at intervals greater than
5 minutes.
• When a query returning more than one million results, consider using the query capability of the Bulk API.
Searching • Keep searches specific and avoid using wildcards, if possible.
• Use single-object searches for greater speed and accuracy.
ACTIONS
Best Practices
SOQL and SOSL
• Decompose the query- break the query into two queries and join the results.
• If querying on formula fields is required, make sure that they are deterministic formulas.
• Use values such as NA to replace NULLS options.
• Use SOQL and SOSL where appropriate, and minimize the amount of data being queried or searched.
• Tune the SOQL query, reducing query scope, and using selective filters. Consider using Bulk API with bulk
query.
Deleting Data • When deleting large volumes of data use the hard delete option for Deleting large volumes of data of the Bulk
AP.
• When deleting records that have many children, delete the children first.
General
• Avoid having any user own more than 10,000 records.
• Use a data-tiering strategy that spreads data across multiple objects, and brings in data on demand.
• Whe eati g opies of p odu tio sa d o es, e lude field histo if it is t e ui ed, do t ha ge a lot of
data until sandbox copy is created.
ACTIONS BEST PRACTICES
CASE STUDIES
Case Study: Indexing with Nulls
Example :
1. Create formula field:
Status Value c = IF(ISBLANK(Status c),"blank",
Status__c)
2. Contact Salesforce to get the formula field indexed!
3. Update Query SELECT Name FROM Object c
WHERE Status Value = ' la k
Requirement
• The customer needed to allow nulls in
a field and be able to query against
them.
• Because single-column indexes for
picklists and foreign key fields exclude
rows in which the index column is equal
to null, an index could not have been
used for the null queries.
Solution
• Use some other string, such as N/A, in
place of NULL.
• If you cannot do that, possibly because
records already exist in the object with
null values, create a formula field that
displays text for nulls, and then index
that formula field.
Non
deterministic
Force.com
formula
fields can
Reference other entities
Include other formula fields that
span over other entities
Use dynamic date and time functions
Standard fields with special
functionalities E.g. Opportunity Amount etc
References to fields that Force.com
cannot index
Currency fields in a multicurrency
organization
Long text area fields
Blob, file, or encrypted text
Custom indexes can be created on a formula field, provided that the formula field is deterministic.
Formula field indexing considerations
Note: If the formula is modified after the index is created, the index is disabled. To re-enable an index, one needs to
contact Salesforce Customer Support.
• Create an aggregation custom object.
• Use Apex Batch.Data Aggregation
• To aggregate monthly and yearly metrics
using standard reports.
• Data is stored across two objects.
Requirement Solution
Custom Search
• To search in large data volumes across
multiple objects using specific values and
wildcards.
• 1-20 fields.
• Use only essential search fields.
• De-normalize the data.
• Dynamically determine the use of SOQL
or SOSL.
Related Lists
Detail page takes long time to load
due to large data volume in related
lists.
Enable Separate Loading of Related Lists.
Case Studies
Requirement Solution
Sharing rules
Large number of changes need to be made
to roles, territories, groups, users, portal
account ownership, or public groups
participating in sharing.
• Give Access to all data.
• Create a delta extraction, lowering the
volume of data that needed to be
processed.
API Performance
• Synchronize Salesforce data with external
customer applications.
• Integration used a specific API user that was
part of the sharing hierarchy.
• Queries taking minutes to complete .
Data Deletion
Defer Sharing Calculations
(Contact Salesforce).
Delete millions of records.
• Use the Bulk API s ha d delete fu tio .
• T u ate usto o je t Co ta t Salesfo e .
• If e o ds ha e a hild e , delete hild e
first.
Sharing as per
region
Share data with users on basis of location. Divisions(Contact Salesforce).
Case Studies
jQuery
SALESFORCE CUSTOMIZATION
SALESFORCE AUTOMATION
ADVISORY SERVICES
INTEGRATED SOLUTIONS
Lightning
Bootstrap
Visualforce
Appexc
hange
Commun
ities
Service
Cloud
Sales
Cloud
GitHub
Apex
Web
Services
Visit www.zen4orce.com for further details about Zen4orce Services & Offerings.
Skillset
Zen4orce Service Offerings
References
• http://www.salesforce.com/docs/en/cce/ldv_deployments/salesforce_large_data_volumes_bp.pdf
• http:// .salesfo e. o /do s/de elope /pages/Co te t/pages_ o t olle _ eado l
Get in Touch with us :
+16124545031
sales@zen4orce.com
www.zen4orce.com
THANK YOU !!

More Related Content

PPTX
Large Data Management Strategies
PDF
Extreme Salesforce Data Volumes Webinar (with Speaker Notes)
PPTX
Fast parallel data loading with the bulk API
PDF
Salesforce API Series: Fast Parallel Data Loading with the Bulk API Webinar
PDF
Extreme Salesforce Data Volumes Webinar
PDF
Inside the Force.com Query Optimizer Webinar
PDF
Avoid Growing Pains: Scale Your App for the Enterprise (October 14, 2014)
PDF
Performance Tuning for Visualforce and Apex
Large Data Management Strategies
Extreme Salesforce Data Volumes Webinar (with Speaker Notes)
Fast parallel data loading with the bulk API
Salesforce API Series: Fast Parallel Data Loading with the Bulk API Webinar
Extreme Salesforce Data Volumes Webinar
Inside the Force.com Query Optimizer Webinar
Avoid Growing Pains: Scale Your App for the Enterprise (October 14, 2014)
Performance Tuning for Visualforce and Apex

What's hot (16)

PDF
Salesforce Integration: Talking the Pain out of Data Loading
PPT
Data Management and Migration in Salesforce
PDF
Salesforce1: Every Developer is a Mobile Developer
PPTX
Microsoft SQL Server - Parallel Data Warehouse Presentation
PPTX
Highly available and scalable architectures
PDF
Wave Analytics: Developing Predictive Business Intelligence Apps
PPTX
Boosting the Performance of your Rails Apps
PDF
Ludwig: A code-free deep learning toolbox | Piero Molino, Uber AI
PPTX
IT Service Intelligence Hands On Breakout Session
PDF
Speed up data preparation for ML pipelines on AWS
PDF
Scripted Data Loads with Salesforce DataLoader and ANT
PDF
Integrating SIS’s with Salesforce: An Accidental Integrator’s Guide
PPTX
SharePoint Databases: What you need to know (201512)
PPTX
Big Data Testing : Automate theTesting of Hadoop, NoSQL & DWH without Writing...
DOC
Ha100 notes units 1 and 2 sp08
PPTX
Relational data modeling trends for transactional applications
Salesforce Integration: Talking the Pain out of Data Loading
Data Management and Migration in Salesforce
Salesforce1: Every Developer is a Mobile Developer
Microsoft SQL Server - Parallel Data Warehouse Presentation
Highly available and scalable architectures
Wave Analytics: Developing Predictive Business Intelligence Apps
Boosting the Performance of your Rails Apps
Ludwig: A code-free deep learning toolbox | Piero Molino, Uber AI
IT Service Intelligence Hands On Breakout Session
Speed up data preparation for ML pipelines on AWS
Scripted Data Loads with Salesforce DataLoader and ANT
Integrating SIS’s with Salesforce: An Accidental Integrator’s Guide
SharePoint Databases: What you need to know (201512)
Big Data Testing : Automate theTesting of Hadoop, NoSQL & DWH without Writing...
Ha100 notes units 1 and 2 sp08
Relational data modeling trends for transactional applications
Ad

Viewers also liked (20)

PDF
Top 5 ETL Tools for Salesforce Data Migration
PPTX
Microservice-based Architecture on the Salesforce App Cloud
PPTX
Salesforce com-architecture
PDF
Follow the evidence: Troubleshooting Performance Issues
PDF
How Salesforce built a Scalable, World-Class, Performance Engineering Team
PDF
Real-time personal trainer on the SMACK stack
PDF
Demystifying salesforce for developers
PPTX
Kafka Lambda architecture with mirroring
PPTX
Dreamforce 2013 for Developers (Sydney Salesforce Developer User Group)
PDF
Large volume data analysis on the Typesafe Reactive Platform - Big Data Scala...
PPTX
How Apache Kafka is transforming Hadoop, Spark and Storm
PDF
06 august meetup - enterprise integration architecture
PPTX
How to Position Enterprise Architects in Today's Business
PDF
Salesforce Application Lifecycle Management presented to EA Forum by Sam Garf...
PDF
How to Setup Continuous Integration With Git, Jenkins, and Force.com
PPTX
Big Data Day LA 2015 - Event Driven Architecture for Web Analytics by Peyman ...
PPTX
Case Study: Elasticsearch Ingest Using StreamSets @ Cisco Intercloud
PDF
Machine learning at Scale with Apache Spark
PPT
Salesforce REST API
PDF
Understanding the Salesforce Architecture: How We Do the Magic We Do
Top 5 ETL Tools for Salesforce Data Migration
Microservice-based Architecture on the Salesforce App Cloud
Salesforce com-architecture
Follow the evidence: Troubleshooting Performance Issues
How Salesforce built a Scalable, World-Class, Performance Engineering Team
Real-time personal trainer on the SMACK stack
Demystifying salesforce for developers
Kafka Lambda architecture with mirroring
Dreamforce 2013 for Developers (Sydney Salesforce Developer User Group)
Large volume data analysis on the Typesafe Reactive Platform - Big Data Scala...
How Apache Kafka is transforming Hadoop, Spark and Storm
06 august meetup - enterprise integration architecture
How to Position Enterprise Architects in Today's Business
Salesforce Application Lifecycle Management presented to EA Forum by Sam Garf...
How to Setup Continuous Integration With Git, Jenkins, and Force.com
Big Data Day LA 2015 - Event Driven Architecture for Web Analytics by Peyman ...
Case Study: Elasticsearch Ingest Using StreamSets @ Cisco Intercloud
Machine learning at Scale with Apache Spark
Salesforce REST API
Understanding the Salesforce Architecture: How We Do the Magic We Do
Ad

Similar to Handling of Large Data by Salesforce (20)

PPTX
LDV.pptx
PPTX
LDV-v2.pptx
PPT
Df12 Performance Tuning
PDF
The Need for Speed: Building Reports That Fly
PPTX
Moyez Dreamforce 2017 presentation on Large Data Volumes in Salesforce
PPT
Building Reports That Fly
PDF
Performance Tuning for Visualforce and Apex
PPTX
Replicating One Billion Records with Minimal API Usage
PDF
How One Billion Salesforce records Can Be Replicated with Minimal API Usage
PDF
#SalesforceSaturday : Salesforce BIG Objects Explained
PPTX
Large Data Volume Salesforce experiences
PPTX
Analyze billions of records on Salesforce App Cloud with BigObject
PPTX
Bringing Your Back Office Data To Life with Salesforce Connect
PDF
Blazing new trails with salesforce data nov 16, 2021
PDF
Troubleshooting Tips for Maintaining Salesforce Instances What You Need to Kn...
PDF
Apex Algorithms: Tips and Tricks (Dreamforce 2014)
PPT
Aen007 Kenigsberg 091807
PDF
Manage Massive Datasets with Big Objects & Async SOQL
PDF
5 Cool Things You Didn't Know You Could Do with Data.com APIs
PDF
Development Strategies for Enterprise Scale From the Salesforce.com Platform
LDV.pptx
LDV-v2.pptx
Df12 Performance Tuning
The Need for Speed: Building Reports That Fly
Moyez Dreamforce 2017 presentation on Large Data Volumes in Salesforce
Building Reports That Fly
Performance Tuning for Visualforce and Apex
Replicating One Billion Records with Minimal API Usage
How One Billion Salesforce records Can Be Replicated with Minimal API Usage
#SalesforceSaturday : Salesforce BIG Objects Explained
Large Data Volume Salesforce experiences
Analyze billions of records on Salesforce App Cloud with BigObject
Bringing Your Back Office Data To Life with Salesforce Connect
Blazing new trails with salesforce data nov 16, 2021
Troubleshooting Tips for Maintaining Salesforce Instances What You Need to Kn...
Apex Algorithms: Tips and Tricks (Dreamforce 2014)
Aen007 Kenigsberg 091807
Manage Massive Datasets with Big Objects & Async SOQL
5 Cool Things You Didn't Know You Could Do with Data.com APIs
Development Strategies for Enterprise Scale From the Salesforce.com Platform

More from Thinqloud (20)

PDF
Salesforce summer 18 release notes highlights by thinqloud
PDF
Salesforce news sumary may 2018 - thinqloud
PDF
Salesforce spring 18 release highlights by thinqloud
PDF
Salesforce Recap 2017 by Thinqloud
PDF
Women In Tech (WIT) Jaipur - Jina Chetia - Thinqloud
PDF
Winter 18 Release Notes Highlights - Zen4orce
PDF
Introduction To Einstein Vision - Zen4orce
PDF
What Is Salesforce CRM, Editions, Licenses?
PDF
Salesforce Einstein - Everything You Need To Know
PDF
Salesforce Summer '17 Release Highlights | Zen4orce
PDF
2016 Salesforce Release Highlights
PDF
Salesforce Lightning Tips & Tricks
PDF
Get started with data migration
PDF
Our top picks from Salesforce Winter'17 release !!
PDF
Digital Marketing Automation with Salesforce Marketing Cloud
PDF
Salesforce Lightning Process builder
PDF
Fundraising applications For NonProfits
PDF
Security Testing using ZAP in SFDC
PDF
Learning jQuery made exciting in an interactive session by one of our team me...
PDF
Discover the Connection - NonProfits and CRM
Salesforce summer 18 release notes highlights by thinqloud
Salesforce news sumary may 2018 - thinqloud
Salesforce spring 18 release highlights by thinqloud
Salesforce Recap 2017 by Thinqloud
Women In Tech (WIT) Jaipur - Jina Chetia - Thinqloud
Winter 18 Release Notes Highlights - Zen4orce
Introduction To Einstein Vision - Zen4orce
What Is Salesforce CRM, Editions, Licenses?
Salesforce Einstein - Everything You Need To Know
Salesforce Summer '17 Release Highlights | Zen4orce
2016 Salesforce Release Highlights
Salesforce Lightning Tips & Tricks
Get started with data migration
Our top picks from Salesforce Winter'17 release !!
Digital Marketing Automation with Salesforce Marketing Cloud
Salesforce Lightning Process builder
Fundraising applications For NonProfits
Security Testing using ZAP in SFDC
Learning jQuery made exciting in an interactive session by one of our team me...
Discover the Connection - NonProfits and CRM

Recently uploaded (20)

PDF
Lecture1 pattern recognition............
PPTX
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
PPTX
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
PPTX
Moving the Public Sector (Government) to a Digital Adoption
PDF
Clinical guidelines as a resource for EBP(1).pdf
PPT
Reliability_Chapter_ presentation 1221.5784
PPTX
Business Acumen Training GuidePresentation.pptx
PDF
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
PPTX
Supervised vs unsupervised machine learning algorithms
PPTX
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
PPTX
Data_Analytics_and_PowerBI_Presentation.pptx
PPT
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
PPTX
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
PPTX
Acceptance and paychological effects of mandatory extra coach I classes.pptx
PPTX
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
PPTX
Global journeys: estimating international migration
PDF
Galatica Smart Energy Infrastructure Startup Pitch Deck
PPTX
IBA_Chapter_11_Slides_Final_Accessible.pptx
PPTX
Introduction to Knowledge Engineering Part 1
PDF
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”
Lecture1 pattern recognition............
advance b rammar.pptxfdgdfgdfsgdfgsdgfdfgdfgsdfgdfgdfg
DISORDERS OF THE LIVER, GALLBLADDER AND PANCREASE (1).pptx
Moving the Public Sector (Government) to a Digital Adoption
Clinical guidelines as a resource for EBP(1).pdf
Reliability_Chapter_ presentation 1221.5784
Business Acumen Training GuidePresentation.pptx
168300704-gasification-ppt.pdfhghhhsjsjhsuxush
Supervised vs unsupervised machine learning algorithms
The THESIS FINAL-DEFENSE-PRESENTATION.pptx
Data_Analytics_and_PowerBI_Presentation.pptx
Chapter 3 METAL JOINING.pptnnnnnnnnnnnnn
MODULE 8 - DISASTER risk PREPAREDNESS.pptx
Acceptance and paychological effects of mandatory extra coach I classes.pptx
mbdjdhjjodule 5-1 rhfhhfjtjjhafbrhfnfbbfnb
Global journeys: estimating international migration
Galatica Smart Energy Infrastructure Startup Pitch Deck
IBA_Chapter_11_Slides_Final_Accessible.pptx
Introduction to Knowledge Engineering Part 1
“Getting Started with Data Analytics Using R – Concepts, Tools & Case Studies”

Handling of Large Data by Salesforce

  • 2. Agenda 1. Overview 2. Handling of Large data by Salesforce • The Underlying Concept • Infrastructure – Salesforce Components and Capabilities 3. Techniques for Optimizing Performance 4. Best Practices 5. Case Studies
  • 3. Overview  Salesforce automatically enables customers to easily scale their applications up from small to large amounts of data.  Ho e e if the e s la ge data olu e, ti e e ui ed fo e tai p o esses ight g o .  The processing time is dependent upon the architecture and the design of the application.  Main Processes that gets affected.  Loading/Uploading large number of records.  Extraction of data through Reports/Dashboards, List Views.  Strategy for optimizing the processes  Following industry-standard practices for accommodating schema changes and operations in database-enabled applications.  Deferring or bypassing business rule and sharing processing.  Choosing the most efficient operation for accomplishing a task.
  • 4. Underlying Concept and Infrastructure HOW DOES SALESFORCE HANDLE LARGE DATA?
  • 5. The Underlying Concept • Multitenancy is a means of providing a single application to multiple organizations. • Multitenancy requires that applications behave reliably, even when architects are making Salesforce-supported customizations. • When organizations create custom objects, the platform tracks metadata about the objects and their fields, relationships, and other object definition characteristics. See the diagram below: • As a customer, the SQL underlying many application operations cannot be modified as it is generated by the system, not written by each tenant. Multitenancy of Metadata • Search is the capability to query records based on free- form text. • Salesforce Search Architecture is based on its own data which makes it easier to search. • For data to be searched, it has to be indexed. • Salesforce Search Capabilities. – The sidebar – Advanced and global searches – Find boxes and lookup fields – Suggested Solutions and Knowledge Base – Web-to-Lead and Web-to-Case – Duplicate lead processing – Salesforce Object Search Language (SOSL) for Apex and the API Search Architecture
  • 6. Infrastructure – Salesforce Components and Capabilities Force.com Query Optimizer • Helps the data ase s ste s opti ize p odu e effective execution plans for Salesforce queries. • Works on automatically generated queries to handle reports, list views, and both SOQL queries and the other queries that piggyback on them. • The platform must keep its own set of statistical information to help the database understand the best way to access the data. • As a result, when large amounts of data are created, updated, or deleted using the API, the database must gather statistics before the application can efficiently access data. Indexes Index Tables • The Salesforce multitenant architecture makes the underlying data table for custom fields unsuitable for indexing. • To overcome this limitation, the platform creates an index table that contains a copy of the data, along with information about the data types.Skinny Tables Database Statistics Salesforce supports custom indexes to speed up queries, and one can create custom indexes by contacting Salesforce Customer Support. • Salesforce creates skinny tables to contain frequently used fields and to avoid joins, and it keeps the skinny tables in sync with their source tables when the source tables are modified. • Can be created on custom objects, and on Account, Contact, Opportunity, Lead, and Case objects. Divisions are a means of partitioning the data of large deployments to reduce the number of records returned by queries and reports. Divisions
  • 7. Techniques for Optimizing Performance Using Mashups Defer Sharing Calculation Deleting Data Search Data Archiving
  • 9. Best Practices BEST PRACTICES Reporting • Reduce number records to query-use value in data to segment query. • Reduce number of objects queried and number of relationships use to generate the report. • Reduce number of fields queried- only add fields to a report , list view, or SOQL query that is required. • Reduce amount of data by archiving unused records. • Use report filter that emphasize the use of standard or custom indexed fields. Loading Data from the API • Use the Salesforce Bulk API when you have more than a few hundred thousand records. • Use the fastest operation possible-—insert() is fastest, update() is next, and upsert() is next after that. • Ensure that data is clean before loading when using the Bulk API. • When updating, send only fields that have changed. • For custom integrations : Authenticate once per load, not on each record. • If possible for initial loads, populate roles before populating sharing rules. • When changing child records, group them by parent. • When using the SOAP API, use as many batches as possible. Extracting Data from the API • Use the getUpdated() and getDeleted() SOAP API to sync an external system with Salesforce at intervals greater than 5 minutes. • When a query returning more than one million results, consider using the query capability of the Bulk API. Searching • Keep searches specific and avoid using wildcards, if possible. • Use single-object searches for greater speed and accuracy. ACTIONS
  • 10. Best Practices SOQL and SOSL • Decompose the query- break the query into two queries and join the results. • If querying on formula fields is required, make sure that they are deterministic formulas. • Use values such as NA to replace NULLS options. • Use SOQL and SOSL where appropriate, and minimize the amount of data being queried or searched. • Tune the SOQL query, reducing query scope, and using selective filters. Consider using Bulk API with bulk query. Deleting Data • When deleting large volumes of data use the hard delete option for Deleting large volumes of data of the Bulk AP. • When deleting records that have many children, delete the children first. General • Avoid having any user own more than 10,000 records. • Use a data-tiering strategy that spreads data across multiple objects, and brings in data on demand. • Whe eati g opies of p odu tio sa d o es, e lude field histo if it is t e ui ed, do t ha ge a lot of data until sandbox copy is created. ACTIONS BEST PRACTICES
  • 12. Case Study: Indexing with Nulls Example : 1. Create formula field: Status Value c = IF(ISBLANK(Status c),"blank", Status__c) 2. Contact Salesforce to get the formula field indexed! 3. Update Query SELECT Name FROM Object c WHERE Status Value = ' la k Requirement • The customer needed to allow nulls in a field and be able to query against them. • Because single-column indexes for picklists and foreign key fields exclude rows in which the index column is equal to null, an index could not have been used for the null queries. Solution • Use some other string, such as N/A, in place of NULL. • If you cannot do that, possibly because records already exist in the object with null values, create a formula field that displays text for nulls, and then index that formula field.
  • 13. Non deterministic Force.com formula fields can Reference other entities Include other formula fields that span over other entities Use dynamic date and time functions Standard fields with special functionalities E.g. Opportunity Amount etc References to fields that Force.com cannot index Currency fields in a multicurrency organization Long text area fields Blob, file, or encrypted text Custom indexes can be created on a formula field, provided that the formula field is deterministic. Formula field indexing considerations Note: If the formula is modified after the index is created, the index is disabled. To re-enable an index, one needs to contact Salesforce Customer Support.
  • 14. • Create an aggregation custom object. • Use Apex Batch.Data Aggregation • To aggregate monthly and yearly metrics using standard reports. • Data is stored across two objects. Requirement Solution Custom Search • To search in large data volumes across multiple objects using specific values and wildcards. • 1-20 fields. • Use only essential search fields. • De-normalize the data. • Dynamically determine the use of SOQL or SOSL. Related Lists Detail page takes long time to load due to large data volume in related lists. Enable Separate Loading of Related Lists. Case Studies
  • 15. Requirement Solution Sharing rules Large number of changes need to be made to roles, territories, groups, users, portal account ownership, or public groups participating in sharing. • Give Access to all data. • Create a delta extraction, lowering the volume of data that needed to be processed. API Performance • Synchronize Salesforce data with external customer applications. • Integration used a specific API user that was part of the sharing hierarchy. • Queries taking minutes to complete . Data Deletion Defer Sharing Calculations (Contact Salesforce). Delete millions of records. • Use the Bulk API s ha d delete fu tio . • T u ate usto o je t Co ta t Salesfo e . • If e o ds ha e a hild e , delete hild e first. Sharing as per region Share data with users on basis of location. Divisions(Contact Salesforce). Case Studies
  • 16. jQuery SALESFORCE CUSTOMIZATION SALESFORCE AUTOMATION ADVISORY SERVICES INTEGRATED SOLUTIONS Lightning Bootstrap Visualforce Appexc hange Commun ities Service Cloud Sales Cloud GitHub Apex Web Services Visit www.zen4orce.com for further details about Zen4orce Services & Offerings. Skillset Zen4orce Service Offerings
  • 17. References • http://www.salesforce.com/docs/en/cce/ldv_deployments/salesforce_large_data_volumes_bp.pdf • http:// .salesfo e. o /do s/de elope /pages/Co te t/pages_ o t olle _ eado l Get in Touch with us : +16124545031 sales@zen4orce.com www.zen4orce.com THANK YOU !!