Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What are the advantages and disadvantages of using Optimistic Concurrency?

0
Posted

What are the advantages and disadvantages of using Optimistic Concurrency?

0

The disadvantage is that the data integrity could be compramised if not used with caution. The advantages are numerous, first one being allowing mulitiple transactions to access same data concurrently. When UpdateModifiedFields option is used: This can give a significant performance boost for following reasons: 1) Very often your data access is read-only. In such cases, not sending an update to the database is obviously a big win. We have seen order-of-magnitute performance boosts from this single optimization. 2) Many databases write logs depending on which columns were modified. For example, SQL Server will log the update if a TEXT or IMAGE field is updated, regardless of whether the column’s value actually changed. Note that the database often does not (or cannot) distinguish between updating a column to hold the same value it used to hold (which is what occurs with “UpdateAllFields”), and actually modifying the column’s value. Suppressing the update for the case where the value did

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123