SlideShare a Scribd company logo
Farmington Hills Salesforce Developer User
Group
Salesforce Apex Hours:- Big Objects
#SalesforceApexHours #FarmingtonHillsSFDCDug
Speaker :- Jigar Shah, Amit Chaudhary
Date :- Saturday, JAN 27, 2018 10:00 AM EST
Venue/Link :- TBD
Who am I ?
Amit Chaudhary (Salesforce MVP)
• Active on Salesforce Developer Community
• Blogging at http://amitsalesforce.blogspot.in/
• Co-Organizer of :- FarmingtonHillsSFDCDug
Our Speaker
Jigar Shah
• Enterprise Solution Architect, Eternus Solutions
• Speaker (Tahoe Dreamin’18, Dev. User Groups)
• Developer Community Profile
• Trailblazer Community Profile
• 3x Certified (Platform Dev 1, App Builder,
Administrator)
• Blogs at https://learnsfdcwithjigar.wordpress.com/
@jigarshah189
/in/jigarshah189
Agenda
Need for Big Objects
What is a Big Object?
Big Object Use Cases
Considerations for Usage
Demo
Q & A
Need for Big Objects?
Nature of Storage
• Master Data
• Business Data
• Operational Data
Performance
• Performance
diminishes with
large data sets
• Data retrieval
limits
Cost
• Limited data
storage
What is a Big Object?
Object that stores & manages
massive data
volumes
within Salesforce without
affecting
performance.
▶ Does NOT count against org data
storage limits
▶ Processing scale of 1 billion records
▶ Types
 Standard (FieldHistoryArchive)
 User Defined
 Suffixed with “__b”
Big Object Use Cases
Capture User
Activity
• Code reviews,
time entries, page
views, field audits
etc.
Retain
Historical
Data
• Historical data
stored for
compliance
360 Customer
View
• Ancillary
customer data
e.g. Purchase
Details,
Transactions
Considerations for Big Objects Usage
• Metadata API
• Max. 100 Big Objects per org
• Supports DateTime, Lookup, Number, Text, Long Text Area field types only
• Triggers, Flows, Processes, Salesforce App are unavailable
• Async SOQL is restricted to specific licenses
General
• Standard UI unavailable (Tabs, Detail Pages, List Views)
• Works with Visualforce Pages or Lightning Components
UI / UX
• Supports Object & Field Permissions only
Data Security & Access
• No support for Report Builder
• Einstein Analytics supported
Analytics
• Included in Managed Packages
Packaging
Demo
▶ Use Case
▶ Big Objects Schema Definition
▶ Big Object Record Creation
▶ Data Retrieval
▶ Standard SOQL
▶ Async Soql
Demo – Use Case
▶ Extreme Gaming is globally renowned provider of online arcade games.
They have an extremely popular game which has thousands of online
players.
▶ This company intends to store all the interactions the players make in a
single play of the game within Salesforce.
▶ The game has numerous interactions per day which multiplied with its
huge set of players results in tons of data.
Object Definition
# Field Label Field Name Required? Type Indexed Order
1 In-Game Purchase In_Game_Purchase__c Text (16)
2 Level Achieved Level_Achieved__c Text (16)
3 Lives Used Lives_This_Game__c Text (16)
4 Game Platform Game_Platform__c Yes Text (16) ASC 2
5 Score This Game Score_This_Game__c Text(16)
6 User Account Account__c Yes Lookup (Account) DESC 1
7 Date of Play Play_Date__c Yes DateTime DESC 3
8 Play_Duration__c Play_Duration__c Yes Number (18, 2)
Customer Interactions (Customer_Interaction__b)
Deploying your Schema
SchemaDefinition
Package.xml
Metadata Type
Object File
Object Definition
(Name, Label, Fields)
Indexes
Permissions File Profile or Permission Set Access
Big Object Data Manipulation
▶ Apex CRUD
▶ Create / Update (Idempotent Behavior)
▶ insertImmediate(sobject) OR insertImmediate(sobjects)
▶ Read
▶ SOQL Queries
▶ Async SOQL
▶ CSV Files
▶ API (Bulk API, SOAP API)
Using Standard SOQL with Big Objects
Executes
synchronously
All Indexes are
mandatory
Comparison
Operators (=,
<, >, <=, >=,
IN)
Not Supported
Operators
(!=, LIKE,
NOT IN,
EXCLUDES,
INCLUDES)
Using Async SOQL with Big Objects
{
"jobId":"08PD000000003kiT",
"message":"",
"query":"SELECT Account__c, In_Game_Purchase__c FROM Customer_Interaction__b
WHERE Play_Date__c='2018-01-05'",
"status":"New",
"targetObject":"Customer_Interaction_Analysis__c",
"targetFieldMap":{
"Account__c":"Account__c",
"In_Game_Purchase__c":"Purchase__c"
},
"targetValueMap":{
"$JOB_ID":"BackgroundOperationLookup__c",
"Copy fields from source to target":"BackgroundOperationDescription__c"
}
}
SOQL Vs Async SOQL Usage Considerations
Feature Standard SOQL Async SOQL
Mode of Execution Synchronous Asynchronous
Immediate Response
Required?
Yes No
Expected Result Set Size Smaller Data Sets (Thousands of records) Large Data Sets (Millions of records)
Best Suited For
• Displaying Data on UI
• Manipulations within Apex
• Aggregation
• Summarizing for Analytics
Filter using Non Index fields Yes No
Sample Format
SELECT Game_Platform__c, Play_Date__c
FROM Customer_Interaction__b
WHERE
Game_Platform__c='PC' AND Play_Date__c='2017-09-06'
{
"query": "SELECT Account_c, In_Game_Purchase__c FROM
Customer_Interaction__b WHERE Play_Date__c='2017-09-06'",
"operation": "insert",
"targetObject": "Customer_Interaction_Analysis__c",
"targetFieldMap": {
"Account__c":"Account__c",
"In_Game_Purchase__c":"Purchase__c"
},
"targetValueMap":{
"$JOB_ID“ : "BackgroundOperationLookup__c",
"Copy fields from source to target“ : "BackgroundOperationDescription__c"}
}
Additional References
 Big Object Basics (Trailhead Module)
 Big Objects – Bring Data to Force.com (YouTube)
Big Objects Implementation Guide (Salesforce Documentation)
Questions ?...
Thank You
Follow Farmington Hills SFDC Developer Group
Twitter Hashtag
#FarmingtonHillsSFDCDug
Meetup.com
https://www.meetup.com/Farmington-Hills-Salesforce-Developer-
Meetup/
Facebook Page
https://www.facebook.com/FarmingtonHillsSfdcdug/?ref=bookmarks
Demo – Use Case
▶ ABC Financial Services, is a provider of wealth advisory services to clients
globally. They have been using Salesforce as their system of truth for all
their business needs for the past few years.
▶ In the past few months they have been concerned about the following
challenges.
▶ Large amounts of audit information generated daily, eating into their org’s
data storage which is difficult to analyze.
▶ Unsuccessful in auditing changes for descriptive text fields on Opportunities
which is crucial to them for organizational compliance.

More Related Content

DOCX
Pega prpc tutorials for beginners
PPTX
Governor limits
PDF
Mule caching strategy with redis cache
PDF
Data all over the place! How SQL and Apache Calcite bring sanity to streaming...
PPTX
Salesforce APIs
PPTX
Webinar: Integrating Salesforce and Slack (05 12-16)
PDF
Manage Salesforce Like a Pro with Governance
PDF
Hive Bucketing in Apache Spark with Tejas Patil
Pega prpc tutorials for beginners
Governor limits
Mule caching strategy with redis cache
Data all over the place! How SQL and Apache Calcite bring sanity to streaming...
Salesforce APIs
Webinar: Integrating Salesforce and Slack (05 12-16)
Manage Salesforce Like a Pro with Governance
Hive Bucketing in Apache Spark with Tejas Patil

What's hot (20)

PDF
How to make APEX print through Node.js
PPTX
Salesforce Org Health Check & Performance Testing
PPTX
Build RESTful API Using Express JS
PPTX
Gatling overview
PPT
Performance testing jmeter
PDF
React
PPTX
Tosca explained
PDF
Page Object Model and Implementation in Selenium
PDF
Exciting New Alfresco REST APIs
 
PDF
Level Up Your Integration Testing With Testcontainers
PPTX
Oracle REST Data Services Best Practices/ Overview
PDF
Universal React apps in Next.js
PPTX
Scale your Alfresco Solutions
PPTX
API Testing Using REST Assured with TestNG
PDF
API Integration For Building Software Applications Powerpoint Presentation Sl...
PDF
Getting started with Next.js
PPTX
How to Use Salesforce Platform Events to Help With Salesforce Limits
PPTX
Lightning web components - Introduction, component Lifecycle, Events, decorat...
PPT
Performance Testing
PDF
SELENIUM PPT.pdf
How to make APEX print through Node.js
Salesforce Org Health Check & Performance Testing
Build RESTful API Using Express JS
Gatling overview
Performance testing jmeter
React
Tosca explained
Page Object Model and Implementation in Selenium
Exciting New Alfresco REST APIs
 
Level Up Your Integration Testing With Testcontainers
Oracle REST Data Services Best Practices/ Overview
Universal React apps in Next.js
Scale your Alfresco Solutions
API Testing Using REST Assured with TestNG
API Integration For Building Software Applications Powerpoint Presentation Sl...
Getting started with Next.js
How to Use Salesforce Platform Events to Help With Salesforce Limits
Lightning web components - Introduction, component Lifecycle, Events, decorat...
Performance Testing
SELENIUM PPT.pdf
Ad

Similar to Big Objects in Salesforce (20)

PPTX
Eternus Solutions : Implementation of Salesforce Big Objects
PPTX
Big objects in Salesforce Technology
PDF
#SalesforceSaturday : Salesforce BIG Objects Explained
PDF
Manage Massive Datasets with Big Objects & Async SOQL
PPTX
Analyze billions of records on Salesforce App Cloud with BigObject
PPTX
SFDC Database Basics
PDF
Scale with Large Data Volumes and Big Objects in Salesforce
PDF
Handling of Large Data by Salesforce
PDF
Avoid Growing Pains: Scale Your App for the Enterprise (October 14, 2014)
PPTX
Salesforce's Trusted Enterprise Platform and Apache Phoenix
PPT
Df12 Performance Tuning
PDF
Development Strategies for Enterprise Scale From the Salesforce.com Platform
PPTX
Moyez Dreamforce 2017 presentation on Large Data Volumes in Salesforce
PPTX
LDV.pptx
PPTX
LDV-v2.pptx
PDF
Integrating Salesforce With Business Intelligence and Data Warehouses
PPTX
Einstein Analytics Part 2
PDF
The Need for Speed: Building Reports That Fly
PDF
Processing Big Data At-Scale in the App Cloud
PDF
Elevate london dec 2014.pptx
Eternus Solutions : Implementation of Salesforce Big Objects
Big objects in Salesforce Technology
#SalesforceSaturday : Salesforce BIG Objects Explained
Manage Massive Datasets with Big Objects & Async SOQL
Analyze billions of records on Salesforce App Cloud with BigObject
SFDC Database Basics
Scale with Large Data Volumes and Big Objects in Salesforce
Handling of Large Data by Salesforce
Avoid Growing Pains: Scale Your App for the Enterprise (October 14, 2014)
Salesforce's Trusted Enterprise Platform and Apache Phoenix
Df12 Performance Tuning
Development Strategies for Enterprise Scale From the Salesforce.com Platform
Moyez Dreamforce 2017 presentation on Large Data Volumes in Salesforce
LDV.pptx
LDV-v2.pptx
Integrating Salesforce With Business Intelligence and Data Warehouses
Einstein Analytics Part 2
The Need for Speed: Building Reports That Fly
Processing Big Data At-Scale in the App Cloud
Elevate london dec 2014.pptx
Ad

More from Amit Chaudhary (20)

PPTX
Platform cache
PPTX
Apex code Benchmarking
PPTX
Empower admins with the power of salesforce dx, git and cicd pipeline
PPTX
Marketing cloud development
PPTX
Salesforce Apex Hours : Node red for salesforce
PPTX
Modular application development using unlocked packages
PPTX
Einstein Next Best Action (NBA)
PPTX
Pardot basics
PPTX
Lightning web components
PPTX
Lightning web components
PPTX
Lightning Locker Services
PDF
Salesforce apex hours heroku connect - deep dive
PPTX
Salesforce apex hours :- azure active directory seamless single sign-on with...
PPTX
Salesforce DX for Non-Scratch Org
PPTX
Einstein Analytics
PPTX
Demystifying the salesforce reports api
PPTX
Salesforce apex hours Einstein platform services
PPTX
Salesforce Apex Hours : How Lightning Platform Query Optimizer works for LDV
PPTX
Einstein bots
PPTX
Integrating with salesforce using platform events
Platform cache
Apex code Benchmarking
Empower admins with the power of salesforce dx, git and cicd pipeline
Marketing cloud development
Salesforce Apex Hours : Node red for salesforce
Modular application development using unlocked packages
Einstein Next Best Action (NBA)
Pardot basics
Lightning web components
Lightning web components
Lightning Locker Services
Salesforce apex hours heroku connect - deep dive
Salesforce apex hours :- azure active directory seamless single sign-on with...
Salesforce DX for Non-Scratch Org
Einstein Analytics
Demystifying the salesforce reports api
Salesforce apex hours Einstein platform services
Salesforce Apex Hours : How Lightning Platform Query Optimizer works for LDV
Einstein bots
Integrating with salesforce using platform events

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
Lesson notes of climatology university.
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
Microbial disease of the cardiovascular and lymphatic systems
PDF
Basic Mud Logging Guide for educational purpose
PDF
RMMM.pdf make it easy to upload and study
PDF
TR - Agricultural Crops Production NC III.pdf
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Cell Types and Its function , kingdom of life
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
102 student loan defaulters named and shamed – Is someone you know on the list?
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
The Lost Whites of Pakistan by Jahanzaib Mughal.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPH.pptx obstetrics and gynecology in nursing
human mycosis Human fungal infections are called human mycosis..pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
Computing-Curriculum for Schools in Ghana
Lesson notes of climatology university.
VCE English Exam - Section C Student Revision Booklet
Microbial disease of the cardiovascular and lymphatic systems
Basic Mud Logging Guide for educational purpose
RMMM.pdf make it easy to upload and study
TR - Agricultural Crops Production NC III.pdf
Microbial diseases, their pathogenesis and prophylaxis
Cell Types and Its function , kingdom of life
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...

Big Objects in Salesforce

  • 1. Farmington Hills Salesforce Developer User Group Salesforce Apex Hours:- Big Objects #SalesforceApexHours #FarmingtonHillsSFDCDug Speaker :- Jigar Shah, Amit Chaudhary Date :- Saturday, JAN 27, 2018 10:00 AM EST Venue/Link :- TBD
  • 2. Who am I ? Amit Chaudhary (Salesforce MVP) • Active on Salesforce Developer Community • Blogging at http://amitsalesforce.blogspot.in/ • Co-Organizer of :- FarmingtonHillsSFDCDug
  • 3. Our Speaker Jigar Shah • Enterprise Solution Architect, Eternus Solutions • Speaker (Tahoe Dreamin’18, Dev. User Groups) • Developer Community Profile • Trailblazer Community Profile • 3x Certified (Platform Dev 1, App Builder, Administrator) • Blogs at https://learnsfdcwithjigar.wordpress.com/ @jigarshah189 /in/jigarshah189
  • 4. Agenda Need for Big Objects What is a Big Object? Big Object Use Cases Considerations for Usage Demo Q & A
  • 5. Need for Big Objects? Nature of Storage • Master Data • Business Data • Operational Data Performance • Performance diminishes with large data sets • Data retrieval limits Cost • Limited data storage
  • 6. What is a Big Object? Object that stores & manages massive data volumes within Salesforce without affecting performance. ▶ Does NOT count against org data storage limits ▶ Processing scale of 1 billion records ▶ Types  Standard (FieldHistoryArchive)  User Defined  Suffixed with “__b”
  • 7. Big Object Use Cases Capture User Activity • Code reviews, time entries, page views, field audits etc. Retain Historical Data • Historical data stored for compliance 360 Customer View • Ancillary customer data e.g. Purchase Details, Transactions
  • 8. Considerations for Big Objects Usage • Metadata API • Max. 100 Big Objects per org • Supports DateTime, Lookup, Number, Text, Long Text Area field types only • Triggers, Flows, Processes, Salesforce App are unavailable • Async SOQL is restricted to specific licenses General • Standard UI unavailable (Tabs, Detail Pages, List Views) • Works with Visualforce Pages or Lightning Components UI / UX • Supports Object & Field Permissions only Data Security & Access • No support for Report Builder • Einstein Analytics supported Analytics • Included in Managed Packages Packaging
  • 9. Demo ▶ Use Case ▶ Big Objects Schema Definition ▶ Big Object Record Creation ▶ Data Retrieval ▶ Standard SOQL ▶ Async Soql
  • 10. Demo – Use Case ▶ Extreme Gaming is globally renowned provider of online arcade games. They have an extremely popular game which has thousands of online players. ▶ This company intends to store all the interactions the players make in a single play of the game within Salesforce. ▶ The game has numerous interactions per day which multiplied with its huge set of players results in tons of data.
  • 11. Object Definition # Field Label Field Name Required? Type Indexed Order 1 In-Game Purchase In_Game_Purchase__c Text (16) 2 Level Achieved Level_Achieved__c Text (16) 3 Lives Used Lives_This_Game__c Text (16) 4 Game Platform Game_Platform__c Yes Text (16) ASC 2 5 Score This Game Score_This_Game__c Text(16) 6 User Account Account__c Yes Lookup (Account) DESC 1 7 Date of Play Play_Date__c Yes DateTime DESC 3 8 Play_Duration__c Play_Duration__c Yes Number (18, 2) Customer Interactions (Customer_Interaction__b)
  • 12. Deploying your Schema SchemaDefinition Package.xml Metadata Type Object File Object Definition (Name, Label, Fields) Indexes Permissions File Profile or Permission Set Access
  • 13. Big Object Data Manipulation ▶ Apex CRUD ▶ Create / Update (Idempotent Behavior) ▶ insertImmediate(sobject) OR insertImmediate(sobjects) ▶ Read ▶ SOQL Queries ▶ Async SOQL ▶ CSV Files ▶ API (Bulk API, SOAP API)
  • 14. Using Standard SOQL with Big Objects Executes synchronously All Indexes are mandatory Comparison Operators (=, <, >, <=, >=, IN) Not Supported Operators (!=, LIKE, NOT IN, EXCLUDES, INCLUDES)
  • 15. Using Async SOQL with Big Objects { "jobId":"08PD000000003kiT", "message":"", "query":"SELECT Account__c, In_Game_Purchase__c FROM Customer_Interaction__b WHERE Play_Date__c='2018-01-05'", "status":"New", "targetObject":"Customer_Interaction_Analysis__c", "targetFieldMap":{ "Account__c":"Account__c", "In_Game_Purchase__c":"Purchase__c" }, "targetValueMap":{ "$JOB_ID":"BackgroundOperationLookup__c", "Copy fields from source to target":"BackgroundOperationDescription__c" } }
  • 16. SOQL Vs Async SOQL Usage Considerations Feature Standard SOQL Async SOQL Mode of Execution Synchronous Asynchronous Immediate Response Required? Yes No Expected Result Set Size Smaller Data Sets (Thousands of records) Large Data Sets (Millions of records) Best Suited For • Displaying Data on UI • Manipulations within Apex • Aggregation • Summarizing for Analytics Filter using Non Index fields Yes No Sample Format SELECT Game_Platform__c, Play_Date__c FROM Customer_Interaction__b WHERE Game_Platform__c='PC' AND Play_Date__c='2017-09-06' { "query": "SELECT Account_c, In_Game_Purchase__c FROM Customer_Interaction__b WHERE Play_Date__c='2017-09-06'", "operation": "insert", "targetObject": "Customer_Interaction_Analysis__c", "targetFieldMap": { "Account__c":"Account__c", "In_Game_Purchase__c":"Purchase__c" }, "targetValueMap":{ "$JOB_ID“ : "BackgroundOperationLookup__c", "Copy fields from source to target“ : "BackgroundOperationDescription__c"} }
  • 17. Additional References  Big Object Basics (Trailhead Module)  Big Objects – Bring Data to Force.com (YouTube) Big Objects Implementation Guide (Salesforce Documentation)
  • 20. Follow Farmington Hills SFDC Developer Group Twitter Hashtag #FarmingtonHillsSFDCDug Meetup.com https://www.meetup.com/Farmington-Hills-Salesforce-Developer- Meetup/ Facebook Page https://www.facebook.com/FarmingtonHillsSfdcdug/?ref=bookmarks
  • 21. Demo – Use Case ▶ ABC Financial Services, is a provider of wealth advisory services to clients globally. They have been using Salesforce as their system of truth for all their business needs for the past few years. ▶ In the past few months they have been concerned about the following challenges. ▶ Large amounts of audit information generated daily, eating into their org’s data storage which is difficult to analyze. ▶ Unsuccessful in auditing changes for descriptive text fields on Opportunities which is crucial to them for organizational compliance.