• divya Choudhary
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 0
    Questions
  • 1
    Replies
Trying to figure out how I would leverage a remoteaction/readonly scenario like I would in Visualforce but within lighting. The way lightning components communicate to Apex is similiar to the remoteaction functions as it calls a the apex function asyncrounsly. However I am doing a large aggregate query and I want to increase the 50 000 query rows touched limit. In Visualforce/Remoteaction you would declare your remoteaction function in apex with a @readonly annotation. However the system doesn't allow the @readonly annotation with the @Auraenabled annotation. I have tried declaring my functions with all three annotations (@auraenabled, @readonly, @remoteaction) but I am still hitting the 50 000 limit regardless which is telling me the @readonly functionailty isn't working. Does anyone have any adivce on how to make this possible?
Trying to figure out how I would leverage a remoteaction/readonly scenario like I would in Visualforce but within lighting. The way lightning components communicate to Apex is similiar to the remoteaction functions as it calls a the apex function asyncrounsly. However I am doing a large aggregate query and I want to increase the 50 000 query rows touched limit. In Visualforce/Remoteaction you would declare your remoteaction function in apex with a @readonly annotation. However the system doesn't allow the @readonly annotation with the @Auraenabled annotation. I have tried declaring my functions with all three annotations (@auraenabled, @readonly, @remoteaction) but I am still hitting the 50 000 limit regardless which is telling me the @readonly functionailty isn't working. Does anyone have any adivce on how to make this possible?