You can't directly do this. You can call a @future method to process the data, or a batch Apex Code class to process up to 50,000,000 records. Regardless, you definitely cannot break the 50,000 limit rule inside a trigger. This limit is for performance reasons.
Batch apex will be helpful than future method as with batch apex you can guarantee when its going to update.But with future method its little bit hard to convince user.But again , its your choice and its good there are not too many choices.
How can do using @future annotation methods? please send me the code.
You can achieve that through batch apex. It executed 200 record chunk at a time upto up to 50 million records.
If this post is helpful please throw Kudos.If this post solves your problem kindly mark it as solution.
Thanks
Use either batch apex or future method.
Batch apex will be helpful than future method as with batch apex you can guarantee when its going to update.But with future method its little bit hard to convince user.But again , its your choice and its good there are not too many choices.