Activity Forums Salesforce® Discussions how Lightning Data Service can improve Lightning Component performance

  • how Lightning Data Service can improve Lightning Component performance

    Posted by Anjali on September 12, 2018 at 1:12 pm

    How Lightning Data Service can improve Lightning Component performance and solve inconsistent data problem without writing single line of Apex code?

    shariq replied 6 years, 2 months ago 3 Members · 2 Replies
  • 2 Replies
  • Parul

    Member
    September 12, 2018 at 1:35 pm

    Hi Anjali,

     

    Lightning Data Service component, significantly reducing the complexity of your apps and pages. This reduced complexity means that you don’t have to spend as much time on performance and quality testing.

    If there are many components on record detail page, then for each component there was SOQL to fetch data which affects the performance of the entire page. But if we use LDS it’s performance will improve as time lag to fetch data from server side will be saved.

     

    Hope this will help you!

     

     

    Thanks

    • This reply was modified 6 years, 2 months ago by  Parul.
  • shariq

    Member
    September 12, 2018 at 1:44 pm

    Hi,

    Use Lightning Data Service to load, create, edit, or delete a record in your component without requiring Apex code. Lightning Data Service handles sharing rules and field-level security for you. In addition to not needing Apex, Lightning Data Service improves performance and user interface consistency.

    Since Lightning Data Service do not require the use of apex, we don't make server calls and hence it improves the performance.

    Hope this helps!

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos