Intro to Lightning Data Service

Sharing is Caring

Lightning Data Service is a game-changer for Salesforce Developers and Lightning Components (Aura) because it reduces the amount of work required by developers.

Lightning Data Service is a centralized data caching framework that allows us to do simple CRUD operations (Create Read Update Delete) without needing to write any server-side Apex. This also removes the need for multiple SOQL queries which can dramatically improve performance too. 🙂

The Lightning Data Service includes new components that can be directly bound to records which even allows a user to potentially work offline.

Benefits of Lightning Data Service

  • Avoids multiple repeat calls to the server for the same set of records or single record
  • Reduces page load time
  • Reduces server (app & database) load
  • Supports Offline View

Things to Consider With Lightning Data Service

  • @AuraEnable methods allow to support multiple operations in a single transaction
  • Only available in Lightning Experience and Salesforce1 (mobile app)
Sharing is Caring

Brian is a software architect and technology leader living in Niagara Falls with 13+ years of development experience. He is passionate about automation, business process re-engineering, and building a better tomorrow.

Brian is a proud father of four: two boys, and two girls and has been happily married to Crystal for more than ten years. From time to time, Brian may post about his faith, his family, and definitely about technology.