Search code examples
intersystems-iris

What is the difference between $Increment and $Sequence functions?


What is the difference between $Increment and $Sequence functions and when to use one over the other?

Thanks


Solution

  • The short answer is - $Sequence is faster in cases when you have massive parallel inserts into the database. Here is a good article on $Sequenece and $Increment differences