dbTalk Databases Forums  

Re: Isolation Level

comp.databases.ingres comp.databases.ingres


Discuss Re: Isolation Level in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roy Hann
 
Posts: n/a

Default Re: Isolation Level - 07-16-2009 , 05:03 PM






nikosv wrote:

Quote:
It's a great deal but it also is a feature that needs
different logic when implementing an application since you might not
get the results you would get by using a 'traditional' locking model.
I suppose that might be a problem if you are porting an application
that has depended on some otherwise undesirable quirk of locking, but I
can't see it as a valid criticism of MVCC. (But as I say, it looks like
Ingres is going to give us the option to lock or to use MVCC.)

--
Roy

UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010
Go to http://www.iua.org.uk/join to get on the mailing list.

Reply With Quote
  #2  
Old   
Mike Leo
 
Posts: n/a

Default Re: [Info-Ingres] Isolation Level - 07-16-2009 , 06:35 PM






On Jul 16, 2009, at 5:03 PM, Roy Hann wrote:

Quote:
nikosv wrote:

It's a great deal but it also is a feature that needs
different logic when implementing an application since you might not
get the results you would get by using a 'traditional' locking model.

I suppose that might be a problem if you are porting an application
that has depended on some otherwise undesirable quirk of locking,
but I
can't see it as a valid criticism of MVCC. (But as I say, it looks
like
Ingres is going to give us the option to lock or to use MVCC.)

--
Roy

Both of you are assuming the average programmer can spell the word
"concurrency". Not so. They don't care. So either they code infinite
retry loops into their programs or they let the user see a nice error
dump on
the screen.

But worst of all, many web programmers don't consider concurrency and
the
"last writer wins" rules the roost, which only makes business sense on
another planet. They often get away with it because their
applications are
"shopping cart" type things where there is generally only one writer
of the
shopping cart data. I refer to this as data that is "vertically
partitioned
by creator".

Switching to MVCC will probably fix broken stuff described in my first
paragraph. It won't help the problems in the second paragraph. But it
won't hurt them either.

Again, the oblivious programmer wins. With MVCC, the customer gets some
kind of win. The whole thing is still a house of cards, but a more
predictable
one.

*Sigh*

Every time I start to worry about this stuff, I want to start drinking
large
amounts of Tequila. Or grain alcohol.

Lastly, there is some hope. The new web frameworks like Grails
include this
nice O/R mapping tool layered on Hibernate that encourages the use of
a "version"
column and uses it for optimistic locking. On top of that, Grails
actually
has a transaction manager and treats a very complex operation as a ...
*gasp*
.... TRANSACTION. Imagine that. AND Grails/GORM encourages FOREIGN
KEYS, unlike
the nasty O/R mapping in Ruby. The heresy continues! CGI programmers
are
turning over in their graves.

Pretty soon, data modeling will be back in vogue! Erwin sales will
skyrocket!

*BANG*

I woke up.

;-)

Cheers,

Michael Leo
Director of Managed Services
Kettle River Consulting

MLeo (AT) KettleRiverConsulting (DOT) com

Reply With Quote
  #3  
Old   
Roy Hann
 
Posts: n/a

Default Re: [Info-Ingres] Isolation Level - 07-17-2009 , 02:27 AM



Mike Leo wrote:

Quote:
On Jul 16, 2009, at 5:03 PM, Roy Hann wrote:

nikosv wrote:

It's a great deal but it also is a feature that needs
different logic when implementing an application since you might not
get the results you would get by using a 'traditional' locking model.

I suppose that might be a problem if you are porting an application
that has depended on some otherwise undesirable quirk of locking,
but I
can't see it as a valid criticism of MVCC. (But as I say, it looks
like
Ingres is going to give us the option to lock or to use MVCC.)

--
Roy


Both of you are assuming the average programmer can spell the word
"concurrency".
Ohhh, let me assure you I assume NO such thing!

[snip]

Quote:
Lastly, there is some hope. The new web frameworks like Grails
include this
nice O/R mapping tool layered on Hibernate that encourages the use of
a "version"
column and uses it for optimistic locking. On top of that, Grails
actually
has a transaction manager and treats a very complex operation as a ...
*gasp*
... TRANSACTION. Imagine that. AND Grails/GORM encourages FOREIGN
KEYS, unlike
the nasty O/R mapping in Ruby.
Hmm. I'm going to have to take a look at that. Every time I've looked
at web frameworks in the past I've got kind of queasy.

Quote:
Pretty soon, data modeling will be back in vogue! Erwin sales will
skyrocket!
I honestly don't know what ERwin (or ER modelling of any kind) has to do
with database design. It is totally counterproductive IMO. That whole
industry is based on misconceptions, fallacies, and blindness. But that
is another rant for another time.

--
Roy

UK Ingres User Association Conference 2010 will be on Tuesday June 8 2010
Go to http://www.iua.org.uk/join to get on the mailing list.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.