1 / 19

 batch apex scheduled apex the bulk API

 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.

nike
Download Presentation

 batch apex scheduled apex the bulk API

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1.  batch apexscheduled apexthe bulk API

  2. Those *!#? Governor limits!

  3. Execution Context Actual person? Session! Person spoofing a person? Some else’s session. Machine spoofing a person? No Session! What the heck?

  4. Batch Apex • long-running database operations on the force.com platform • Abstracts the developer from batching • Fresh contexts to avoid governor limits!

  5. Batch Apex cont…

  6. Batch Apex Simple Example

  7. 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

  8. Scheduled Apex

  9. Scheduling Options • Cron Job Style or • User Interface

  10. Cron Job

  11. User Interface

  12. 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

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

  14. Bulk API

  15. Bulk API client options • Wizard Demo

  16. Bulk API client options cont… • Data Loader

  17. Bulk API Formats • CSV or XML

  18. Bulk API Binary Attachments Zip File Containing:

  19. Thanks!@danieljpeter

More Related