consider optimistic versus pessimistic approaches

consider optimistic versus pessimistic approaches

Why should I consider optimistic versus pessimistic approaches to database updates?

View Answers

November 15, 2010 at 5:41 PM

Hi Friend,

Use Pessimistic locking if the lock period is short while for long lock period, it is better to use Optimistic locking. It will improve the overall performance.

If there are too many transactions then it is better to use pessimistic locking as the roll-back cost can exceed the locking cost.

Thanks









Related Tutorials/Questions & Answers:
consider optimistic versus pessimistic approaches
consider optimistic versus pessimistic approaches  Why should I consider optimistic versus pessimistic approaches to database updates
optimistic concurrency
optimistic concurrency  What is optimistic concurrency
Advertisements
Approaches to Outsourcing,The Various Approaches to Outsourcing,IT Outsourcing Approaches
The Various Approaches to Outsourcing Introduction It is important to understand the various approaches to outsourcing, so that the most appropriate one may be chosen. The broad categories of outsourcing are as follows:ADS
Java String.equals versus ==
Java String.equals versus ==  Java String.equals versus
Encapsulation versus Absraction
Encapsulation versus Absraction  I believe no one in this world knows real difference between Encapsulation and Abstraction , one of them is me as well but if there is anyone who really understand the difference please help me
ModuleNotFoundError: No module named 'django-optimistic-lock'
ModuleNotFoundError: No module named 'django-optimistic-lock'  Hi...: No module named 'django-optimistic-lock' How to remove the ModuleNotFoundError: No module named 'django-optimistic-lock' error? Thanks   Hi
ModuleNotFoundError: No module named 'consider'
ModuleNotFoundError: No module named 'consider'  Hi, My Python... 'consider' How to remove the ModuleNotFoundError: No module named 'consider... to install padas library. You can install consider python with following
ModuleNotFoundError: No module named 'consider'
ModuleNotFoundError: No module named 'consider'  Hi, My Python... 'consider' How to remove the ModuleNotFoundError: No module named 'consider... to install padas library. You can install consider python with following
Windows 8 versus Android
the potential success of all the platforms and in talking of Windows 8 versus Android... versus Android comparison apparent on user experience. Stature The relative... that it is donning for some time. Windows 8 versus Android, in all competitive aspects
consider defining a bean of type in your configuration. spring boot
consider defining a bean of type in your configuration. spring boot  Hi, I am auto wiring a class in my Spring Boot application but it throws following error at runtime: consider defining a bean of type in your configuration
6 SaaS Software Solutions Every Business Owner Should Consider
to consider utilizing. In business, there are some broad things that each business
Applet versus Application
Applet versus Application       Applets as previously described, are the small programs... that is they can receive the command line argument pass to it. Let us consider the case
SEO Vs. PPC Advertising,Organic SEO vs. PPC Advertising,SEO Versus PPC Search Engine Advertising
jdbc
what is difference between optimistic and pessimistic locking  what is difference between optimistic and pessimistic locking   Pessimistic... is requested.While Optimistic locking is where a record or page is only locked when
JSTL: Set Session Attribute
JSTL: Set Session Attribute          Consider a situation where we are using the jstl and there is a need to set a variable in the session. You all know
How to delete a table in mysql
How to Delete a Table in MySQL       Consider a situation where we need to delete a table from a database.  To delete a table from the database firstly we need
EMFScript
EMFScript       Although transformation is an essential operation of model driven approaches, others kinds of model manipulation are required and are under study
Simplified Application Development with Struts, Hibernate and Spring
Simplified Application Development with Struts, Hibernate and Spring       This tutorial provides an outlook of the alternative lightweight approaches for building J2EE enterprise
Hybrid Mobile Application Development
by implementing both the Native and mobile Web approaches. A web-to-native
Getting Columns Names using Servlets
Getting Columns Names using Servlets       Consider a situation where there is a need to know about the name of the columns without touching our database. As we
Getting Number of Columns
Getting Number of Columns       Consider a situation where there is a need to know about the number of columns in the table without touching our database. As we are the programmers
Getting Number of Rows
Getting Number of Rows       Consider a situation where we want to know about the number of rows in the particular database table without touching our database. As we
Deleting Rows From Table
Deleting Rows From Table       Consider a situation where we have entered some wrong data and in later situation it starts giving problem to the organization. Rather
J2EE Tutorial - Java Bean
J2EE Tutorial - Java Bean       To bring out the differences between the different appraoaches,  we will consider a simple case where the user types his
JSTL for Loop <c: forEach>
JSTL for Loop <c: forEach>           Consider a case where we want to do something with a collection like an array, retrieving one element
Inserting Image in a database Table
Inserting Image in MySql Database Table       Consider a case where we want that along with the name of the person and its information, his image should also
Validating XML document with a DTD
Validating XML document with a DTD If an xml document is well formed i.e. syntactically correct, then it doesn't mean it is valid also. To consider an XML document valid it must be validated, or verified, against a DTD. DTD
J2EE Tutorial - Session Tracking
J2EE Tutorial - Session Tracking       Let us now consider a case where the object  is not available in the webserver but in another remote machine
VoIP Free Software
VoIP Free Software          Free VoIP Software Telephone solution If you have a fast connection to the Internet  you should consider Voice Over IP (VoIP
Creating a MySQL Database Table to store Java Types
Creating a MySQL Database Table to store Java Types       Dear user, consider a case where we need to store a java types in our database table. Now one question may arise in your
Aspects of Social Media Marketing
Aspects of Social Media Marketing to Consider There are hundreds and possibly..., there are some aspects and positive points that are very important to consider. Traffic... All of these aspects and more are essential to consider before signing up
Career in Fashion
, there are a couple of things that you should consider before deciding towards this career. One... consider being a fashion journalist, for example, which is one of the more stable... if that is what you are looking for, you should consider the next career in fashion we
PHP Class Object
PHP Class Object: In object oriented programming a class can be an abstract data type, blue print or template. You could consider the name of a class as noun like name of a person, place or thing.  For example Fruit is a class, where
Choosing the Right Sites for Social Media Marketing
for their social media marketing. There are several key aspects to consider when... either. The user must consider who the members are and if there is a certain niche
Reading Request Information
in a JSP page. Consider an html page that prompts the user to enter his/her
Same Day Jaipur Trip from Delhi
Indian capital, most of the visitors consider a same day trip to Jaipur city
Web application - business layer
performance, and consider using a message-based interface. This works well... typing them separately or with versus
Common Interview Questions Page - 11
Common Interview Questions Page - 11       Question: 90. Do you consider yourself organized? And do you manage your time well? Answer: Here you have to proof your skills
VoIP Software
VoIP Software          VoIP Telephone Solutions If you have a fast connection to the Internet (say 64kbps or more) you should consider Voice Over IP (VoIP
open source - Java Beginners
. Some consider open source as one of various possible design approaches, while others consider it a critical strategic element of their operations. Before open
Hibernate Training
; Optimistic Locking ... Association Versus Component Many-to-one ... Versus One-to-One  JSP Pages 
EJB Container or EJB Server
two mechanism are used to control the concurrency. Optimistic Locking Pessimistic Locking Clustering and load-balancing: Clustering is the process
EJB Container or EJB Server
two mechanism are used to control the concurrency. Optimistic Locking Pessimistic Locking Clustering and load-balancing: Clustering is the process
C++
C++  Describe the principle advantages of deploying a linked list versus a static array when implementing a Queue or a Stack
Outsourcing Communication Tips,Useful Cultural Tips in Offshore Outsourcing,Communication and Culture Tips
. The parties involved may have different approaches and expectations in communications... versus diplomacy and explicit communication versus implicit communication
Java programming approch
Java programming approch  What are the approaches that you will follow for making a program very efficient
What is Niche Social Network?
If you consider making a list of 5 most influential things that changed the way we interact with people in the recent time, definitely social networking... are stubbornly pessimistic about the possibility of this new virtual social space you
Database Sql question? - WebSevices
Database Sql question?  Given relation r (a, b,c), show how to use the exstended SQL features to generate a histogram of c versus a, dividing a into 20 equal-sized partions (that is where each partition contains 5 percent
JDO Implementations
by ObjectWeb. Speedo main benefits: a.) Possible choice of optimistic or pessimistic transaction mode b.) Locking managed by Speedo itself
The Warfare between iOS and Android Platform
of this warfare between Android and iOS platforms. Android versus iOS Android... consider us to have any secret promotional idea in mind. We are not kidding... survey. Almost 75% versus 25%! A sure win to iOS! 5) Twitter: Every twitter user

Ads