Posts

Java Script Basic

 Spread Operator the operator shap is three consective dots and is written as:  Usages of sparead operator 1. Expanding String - Convert String into list of array 2. Combining Arrays - Combine array or add value to array 3. Combining Object - Combine Object or add value to Object 4. Create New Shallow Copy of Arrays and Object sparead operator 1) Arrays var arry = [a,b,c]; // array indax start from zero console.log(arry[0]); console.log(arry[1]); //2 Object var obj = { "name" : "salesforce", "age"  : "54", } console.log(obj.name) console.log(obj.age) // Spread Operator //1. Expanding of string let greeting = "Hello World" let charlist = [...greeting] console.log(charlist[10]); //2.Combing array let arr1 = ["amazon","persistent","google"]; let arr2 = ["feedback","instration"] let arr3 = [...arr1, ...arr2]; console.log(arr3); // 3.adding values to an array let arr4 = ["a","b...

Future Vs Queueable

 Future methods and Queueable Apex are used to perform asynchronous processing, but they have usage and Capabilities Future :- You can call a future method for executing long-running operations, such as callouts to external Web services or any operation you’d like to run in its own thread, on its own time.  Execution Limits:-  . Each execution of future method is treated as a separate transaction with its own set of governor limits. . Multiple Future methods can be executed concurrently .  we cann't monitor the jobs. .  The specified parameters must be primitive data types, arrays of primitive data types, or collections of primitive data types.   Limitations:- .  The maximum number of  future  method invocations per a 24-hour period is 250,000 or the number of user licenses in your organization multiplied by 200, whichever is greater.  . 50 future method invocations per transaction .  The maximum number of future methods that can b...