Re: (Mis)use of transactions



RedGrittyBrick wrote:
Arne Vajhøj wrote:
I think you should drop database builtin locking and go to
application based locking.

Search for optimistic locking and pessimistic locking.

There are well known techniques to handle database operations
in human time (minutes) instead of computer time (milliseconds).

My Google-fu appears to be weak today. I just get lots of refs to EJB locking, Apache Object-relational-bridging etc. These don't appear to be what you are referring to :-(

I may have been a bit too optimistic.

:-(

http://c2.com/cgi/wiki?OptimisticLocking
http://c2.com/cgi/wiki?PessimisticLocking
http://martinfowler.com/eaaCatalog/optimisticOfflineLock.html
http://martinfowler.com/eaaCatalog/pessimisticOfflineLock.html
http://www.javaworld.com/javaworld/jw-01-2006/jw-0130-pojo.html?page=6

say something, but I must admit that it is far from clear
what they really mean.

If you can get your hands on a copy of Fowlers book, then
it has examples in Java/JDBC.

Arne
.



Relevant Pages

  • Re: (Mis)use of transactions
    ... Search for optimistic locking and pessimistic locking. ... There are well known techniques to handle database operations ... in human time instead of computer time. ...
    (comp.lang.java.databases)
  • Re: (Mis)use of transactions
    ... Search for optimistic locking and pessimistic locking. ... There are well known techniques to handle database operations ... in human time instead of computer time. ...
    (comp.lang.java.databases)
  • Re: password encryption
    ... > techniques are however not an option if there are visually impaired ... felt it was important enough I'd probably do a lockout based on some other ... Given we are talking remote systems, ... locking out an IP address for an hour. ...
    (borland.public.delphi.thirdpartytools.general)
  • Re: XP transfer wizard from 98 locks up
    ... > My file transfer wizard from 98 to XP prof. keeps locking up. ... > multiple combinations and techniques. ...
    (microsoft.public.windowsxp.perform_maintain)