Top Banner
batch apex scheduled apex the bulk API
19

 batch apex scheduled apex the bulk API

Feb 15, 2016

Download

Documents

nike

 batch apex scheduled apex the bulk API. Those *!#? Governor limits!. Execution Context. Actual person?. Session!. Person spoofing a person?. Some else’s session. Machine spoofing a person?. No Session! What the heck?. Batch Apex. - PowerPoint PPT Presentation
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1:  batch apex scheduled apex the bulk API

 batch apexscheduled apexthe bulk API

Page 2:  batch apex scheduled apex the bulk API

Those *!#? Governor limits!

Page 3:  batch apex scheduled apex the bulk API

Execution ContextActual person?

Machine spoofing a person?

Person spoofing a person?

Session!

No Session!  What the heck?

Some else’s session.

Page 4:  batch apex scheduled apex the bulk API

Batch Apex• long-running database operations on the force.com platform

• Abstracts the developer from batching

• Fresh contexts to avoid governor limits!

Page 5:  batch apex scheduled apex the bulk API

Batch Apex cont…

Page 6:  batch apex scheduled apex the bulk API

Batch Apex Simple Example

Page 7:  batch apex scheduled apex the bulk API

More Batch Options!global class SuperBatch implements Database.Batchable<sObject>, Database.Stateful, Database.AllowsCallouts {

}

Database.Stateful• Maintain state across transactions.• If you don't specify Database.Stateful, all static and instance member variables are set back to their original values.

Database.AllowsCallouts• Allow HTTP requests

Page 8:  batch apex scheduled apex the bulk API

Scheduled Apex

Page 9:  batch apex scheduled apex the bulk API

Scheduling Options

• Cron Job Style   or

• User Interface

Page 10:  batch apex scheduled apex the bulk API

Cron Job

Page 11:  batch apex scheduled apex the bulk API

User Interface

Page 12:  batch apex scheduled apex the bulk API

Schedulable Context• Set as the user who schedules the job• Records say “last modified by” that user• No session id! – Sessions have expiration– Executed in future– No authentication

Page 13:  batch apex scheduled apex the bulk API

Schedulable Limits• 100 jobs on the schedule at a time.

Page 14:  batch apex scheduled apex the bulk API

Bulk API

Page 15:  batch apex scheduled apex the bulk API

Bulk API client options• Wizard Demo

Page 16:  batch apex scheduled apex the bulk API

Bulk API client options cont…• Data Loader

Page 17:  batch apex scheduled apex the bulk API

Bulk API Formats• CSV or XML

Page 18:  batch apex scheduled apex the bulk API

Bulk API Binary AttachmentsZip File Containing:

Page 19:  batch apex scheduled apex the bulk API

Thanks!@danieljpeter