adspace
What is the difference between the normal “insert” operation and “database.insert” operation ? Which is preferred over the other and why ?
Answer Posted / Pankaj Kumar
The normal insert operation is used to insert records using Apex code or SOQL queries, while database.insert is a method in Apex that allows you to insert sObjects asynchronously. The normal insert operation is synchronous, which can be a disadvantage when dealing with large amounts of data. Therefore, it's preferred to use database.insert for bulk data operations due to its asynchronous nature and improved performance.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers