Unix Technical Forum

SEO

vBulletin Search Engine Optimization


Go Back   Unix Technical Forum > Database Server Software > Informix

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 03:47 PM
Mark Jamison
 
Posts: n/a
Default Re: Informix beats Oracle

Hi t,

I'm not Serge, but the answer to that is yes.

As of 11.10, you can have pessimistic-locking, or optimistic locking.

Entirely configurable at the instance level.

The onconfig parameter is

USELASTCOMMITTED




----- Original Message ----
From: Tool <tool@thetool.com>
To: informix-list@iiug.org
Sent: Monday, June 18, 2007 1:26:57 PM
Subject: Re: Informix beats Oracle

Serge,

Got me to want to actually ask you a question. :-)

It's my understanding that all other DBMS products are pessimistic-locking, ORACLE
is optimistic-locking, Oracle being only one in this category of mainstream DBMS products
to have optimistic locking.

Does this mean Informix has both pessimistic _and_ optimistic locking?

Thanks,

-t-

Serge Rielau wrote:
> DA Morgan wrote:
>> No CTO has ever purchased an RDBMS based on efficient use of CPU.
>> Instead of following the bouncing ball how about asking IBM to make the
>> same changes to Informix they just made to Viper 2 so it will support
>> major business applications?

> Hmmm... nice stitching. IDS has traditionally watched Oracle closer than
> DB2 has, so many of the features you allude to are already present (like
> DECODE, UNIQUE, Oracle sequence syntax...). also IDS has "readers don't
> block writers, ..." which eliminated the perhaps single biggest
> stumbling block for porting Oracle apps.
>
> Cheers
> Serge


_______________________________________________
Informix-list mailing list
Informix-list@iiug.org
http://www.iiug.org/mailman/listinfo/informix-list





Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 03:48 PM
Fernando Nunes
 
Posts: n/a
Default Re: Informix beats Oracle

Mark Jamison wrote:
> Hi t,
>
> I'm not Serge, but the answer to that is yes.
>
> As of 11.10, you can have pessimistic-locking, or optimistic locking.
>
> Entirely configurable at the instance level.
>
> The onconfig parameter is
>
> USELASTCOMMITTED
>


As I wrote answering to Serge, I believe this is not optimistic locking.
And we can configure it on instance level, session level, and depending on the
previous isolation level... An Informix DBA dream

Regards.

--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 03:48 PM
Tool
 
Posts: n/a
Default Re: Informix beats Oracle

Fernando, thanks too for your response. I read your website article and
it was good too.

I have been under the impression that this one feature is what Oracle sells
to clients, that they have the best non-blocking database engine available.
Perhaps this is a bit simplistic, but it is notable that applications and
developers now have another choice of what engine to use if indeed this is
similar to the Oracle implementation, and was not available in other products.

-t-

Fernando Nunes wrote:
> Mark Jamison wrote:
>> Hi t,
>>
>> I'm not Serge, but the answer to that is yes.
>>
>> As of 11.10, you can have pessimistic-locking, or optimistic locking.
>>
>> Entirely configurable at the instance level.
>>
>> The onconfig parameter is
>>
>> USELASTCOMMITTED
>>

>
> As I wrote answering to Serge, I believe this is not optimistic locking.
> And we can configure it on instance level, session level, and depending
> on the previous isolation level... An Informix DBA dream
>
> Regards.
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 03:48 PM
Fernando Nunes
 
Posts: n/a
Default Re: Informix beats Oracle

Tool wrote:
> Fernando, thanks too for your response. I read your website article and
> it was good too.
>


Thanks!

> I have been under the impression that this one feature is what Oracle sells
> to clients, that they have the best non-blocking database engine available.
> Perhaps this is a bit simplistic, but it is notable that applications and
> developers now have another choice of what engine to use if indeed this is
> similar to the Oracle implementation, and was not available in other
> products.


I'm not speaking for IBM... standard disclaimer applies, but:

In practice, I think this has the same results. Using this, you won't block
when trying to read a row that has a lock (not a shared one, but an
insert/update/delete lock). You will get whatever was there (or wasn't...)
before the operation holding the lock.

However, the underlying implementation is AFAIK (I'm not a developer...)
completely different. Oracle is a versioned RDBMS like Postgres and I believe
some engines used in mySQL. Informix is NOT. The Informix implementation is
simpler (quicker?). If it hits a lock, it fetches the value from logical logs.

SQL server has a similar implementation if I read and understood it's
documentation correctly (since v2005 if I recall correctly).

From my experience as DBA, this is THE feature that developers were wishing
for. From some talks with colleagues and some customers I don't find the degree
of enthusiasm I was expecting...

I'll be very happy if my daily customer migrates to IDS 11 and I can use this
feature. I'm "tired" of explaining the locking issues to developers that were
trained only in Oracle...

It will also make my daily discussions (friendly) with an Oracle DBA much less
boring, since we tend to fall in this specific difference

--
Fernando Nunes
Portugal

http://informix-technology.blogspot.com
My email works... but I don't check it frequently...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 03:48 PM
Tool
 
Posts: n/a
Default Re: Informix beats Oracle

Well I guess I was thinking this was a bit more than "SET ISOLATION TO DIRTY READ".

What's the difference between that and this new feature? Now I'm totally bamboozled.
Does this mean that in IDS you could not read a locked row at all before this new
feature? Or is this just a global dirty-read setting?

-t-

Fernando Nunes wrote:
> Tool wrote:
>> Fernando, thanks too for your response. I read your website article and
>> it was good too.
>>

>
> Thanks!
>
>> I have been under the impression that this one feature is what Oracle
>> sells
>> to clients, that they have the best non-blocking database engine
>> available.
>> Perhaps this is a bit simplistic, but it is notable that applications and
>> developers now have another choice of what engine to use if indeed
>> this is
>> similar to the Oracle implementation, and was not available in other
>> products.

>
> I'm not speaking for IBM... standard disclaimer applies, but:
>
> In practice, I think this has the same results. Using this, you won't
> block when trying to read a row that has a lock (not a shared one, but
> an insert/update/delete lock). You will get whatever was there (or
> wasn't...) before the operation holding the lock.
>
> However, the underlying implementation is AFAIK (I'm not a developer...)
> completely different. Oracle is a versioned RDBMS like Postgres and I
> believe some engines used in mySQL. Informix is NOT. The Informix
> implementation is simpler (quicker?). If it hits a lock, it fetches the
> value from logical logs.
>
> SQL server has a similar implementation if I read and understood it's
> documentation correctly (since v2005 if I recall correctly).
>
> From my experience as DBA, this is THE feature that developers were
> wishing for. From some talks with colleagues and some customers I don't
> find the degree of enthusiasm I was expecting...
>
> I'll be very happy if my daily customer migrates to IDS 11 and I can use
> this feature. I'm "tired" of explaining the locking issues to developers
> that were trained only in Oracle...
>
> It will also make my daily discussions (friendly) with an Oracle DBA
> much less boring, since we tend to fall in this specific difference
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 04-20-2008, 03:48 PM
Madison Pruet
 
Posts: n/a
Default Re: Informix beats Oracle

Tool wrote:
> Well I guess I was thinking this was a bit more than "SET ISOLATION TO
> DIRTY READ".
>
> What's the difference between that and this new feature? Now I'm
> totally bamboozled.
> Does this mean that in IDS you could not read a locked row at all before
> this new
> feature?


not with committed reads

Or is this just a global dirty-read setting?

No

Dirty Read could return a row which is part of a current transaction and
which might be rolled back. Last committed read will only return
committed rows. The row might be in the process of being updated or
deleted, but the transaction will be returned the last committed version
of the row. However, it is always a version of the row which was committed.

M.P.
>
> -t-
>
> Fernando Nunes wrote:
>> Tool wrote:
>>> Fernando, thanks too for your response. I read your website article and
>>> it was good too.
>>>

>>
>> Thanks!
>>
>>> I have been under the impression that this one feature is what Oracle
>>> sells
>>> to clients, that they have the best non-blocking database engine
>>> available.
>>> Perhaps this is a bit simplistic, but it is notable that applications
>>> and
>>> developers now have another choice of what engine to use if indeed
>>> this is
>>> similar to the Oracle implementation, and was not available in other
>>> products.

>>
>> I'm not speaking for IBM... standard disclaimer applies, but:
>>
>> In practice, I think this has the same results. Using this, you won't
>> block when trying to read a row that has a lock (not a shared one, but
>> an insert/update/delete lock). You will get whatever was there (or
>> wasn't...) before the operation holding the lock.
>>
>> However, the underlying implementation is AFAIK (I'm not a
>> developer...) completely different. Oracle is a versioned RDBMS like
>> Postgres and I believe some engines used in mySQL. Informix is NOT.
>> The Informix implementation is simpler (quicker?). If it hits a lock,
>> it fetches the value from logical logs.
>>
>> SQL server has a similar implementation if I read and understood it's
>> documentation correctly (since v2005 if I recall correctly).
>>
>> From my experience as DBA, this is THE feature that developers were
>> wishing for. From some talks with colleagues and some customers I
>> don't find the degree of enthusiasm I was expecting...
>>
>> I'll be very happy if my daily customer migrates to IDS 11 and I can
>> use this feature. I'm "tired" of explaining the locking issues to
>> developers that were trained only in Oracle...
>>
>> It will also make my daily discussions (friendly) with an Oracle DBA
>> much less boring, since we tend to fall in this specific difference
>>

>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 04-20-2008, 03:48 PM
Data Cruncher
 
Posts: n/a
Default Re: Informix beats Oracle

SET ISOLATION TO DIRTY READ reads rows without regard
for lock(s) held. That means it will never wait for any rows currently
locked by any other session. However it would also mean that
it will read in-transaction rows, that is rows which have been
updated but not yet committed or rolledback!!!. So theoretically
your DR session may end up reading rows which were never
committed. At first it may sound dangerous,
but for many situations in real life it is adequate.

"Tool" <tool@thetool.com> wrote in message
news:MPZdi.50406$lk.4675@fe188.usenetserver.com...
> Well I guess I was thinking this was a bit more than "SET ISOLATION TO
> DIRTY READ".
>
> What's the difference between that and this new feature? Now I'm totally
> bamboozled.
> Does this mean that in IDS you could not read a locked row at all before
> this new
> feature? Or is this just a global dirty-read setting?
>
> -t-
>
> Fernando Nunes wrote:
>> Tool wrote:
>>> Fernando, thanks too for your response. I read your website article and
>>> it was good too.
>>>

>>
>> Thanks!
>>
>>> I have been under the impression that this one feature is what Oracle
>>> sells
>>> to clients, that they have the best non-blocking database engine
>>> available.
>>> Perhaps this is a bit simplistic, but it is notable that applications
>>> and
>>> developers now have another choice of what engine to use if indeed this
>>> is
>>> similar to the Oracle implementation, and was not available in other
>>> products.

>>
>> I'm not speaking for IBM... standard disclaimer applies, but:
>>
>> In practice, I think this has the same results. Using this, you won't
>> block when trying to read a row that has a lock (not a shared one, but an
>> insert/update/delete lock). You will get whatever was there (or
>> wasn't...) before the operation holding the lock.
>>
>> However, the underlying implementation is AFAIK (I'm not a developer...)
>> completely different. Oracle is a versioned RDBMS like Postgres and I
>> believe some engines used in mySQL. Informix is NOT. The Informix
>> implementation is simpler (quicker?). If it hits a lock, it fetches the
>> value from logical logs.
>>
>> SQL server has a similar implementation if I read and understood it's
>> documentation correctly (since v2005 if I recall correctly).
>>
>> From my experience as DBA, this is THE feature that developers were
>> wishing for. From some talks with colleagues and some customers I don't
>> find the degree of enthusiasm I was expecting...
>>
>> I'll be very happy if my daily customer migrates to IDS 11 and I can use
>> this feature. I'm "tired" of explaining the locking issues to developers
>> that were trained only in Oracle...
>>
>> It will also make my daily discussions (friendly) with an Oracle DBA much
>> less boring, since we tend to fall in this specific difference
>>

>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 04-20-2008, 03:49 PM
DA Morgan
 
Posts: n/a
Default Re: Informix beats Oracle

Fernando Nunes wrote:

> In practice, I think this has the same results. Using this, you won't
> block when trying to read a row that has a lock (not a shared one, but
> an insert/update/delete lock). You will get whatever was there (or
> wasn't...) before the operation holding the lock.


This would be a major step forward for Informix if this is what it
appears to be.

Can anyone confirm the following statement is true?

"Reads don't block writes and writes don't block reads and only
committed rows are visible."

And yes SQL Server finally got a measure of this with 2005 whereas
Oracle has had it for decades.

Thank you.
--
Daniel A. Morgan
University of Washington
damorgan@x.washington.edu (replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 04-20-2008, 03:49 PM
Madison Pruet
 
Posts: n/a
Default Re: Informix beats Oracle

DA Morgan wrote:
> Fernando Nunes wrote:
>
>> In practice, I think this has the same results. Using this, you won't
>> block when trying to read a row that has a lock (not a shared one, but
>> an insert/update/delete lock). You will get whatever was there (or
>> wasn't...) before the operation holding the lock.

>
> This would be a major step forward for Informix if this is what it
> appears to be.
>
> Can anyone confirm the following statement is true?
>
> "Reads don't block writes and writes don't block reads and only
> committed rows are visible."


I can.

>
> And yes SQL Server finally got a measure of this with 2005 whereas
> Oracle has had it for decades.
>
> Thank you.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 04-20-2008, 03:49 PM
Tool
 
Posts: n/a
Default Re: Informix beats Oracle

Thanks for the clarification Madison.

I can see where this would be something that needs a little more explaining
to the community, in a presentation of some kind. It appears that this is
going to be useful for high-volume transactions if I'm understanding this
correctly.

Thanks!!

-t-
PS thanks to the rest of you too, DC, Fernando, etc etc.!

Madison Pruet wrote:
> Tool wrote:
>> Well I guess I was thinking this was a bit more than "SET ISOLATION TO
>> DIRTY READ".
>>
>> What's the difference between that and this new feature? Now I'm
>> totally bamboozled.
>> Does this mean that in IDS you could not read a locked row at all
>> before this new
>> feature?

>
> not with committed reads
>
> Or is this just a global dirty-read setting?
>
> No
>
> Dirty Read could return a row which is part of a current transaction and
> which might be rolled back. Last committed read will only return
> committed rows. The row might be in the process of being updated or
> deleted, but the transaction will be returned the last committed version
> of the row. However, it is always a version of the row which was
> committed.
>
> M.P.
>>
>> -t-
>>
>> Fernando Nunes wrote:
>>> Tool wrote:
>>>> Fernando, thanks too for your response. I read your website article
>>>> and
>>>> it was good too.
>>>>
>>>
>>> Thanks!
>>>
>>>> I have been under the impression that this one feature is what
>>>> Oracle sells
>>>> to clients, that they have the best non-blocking database engine
>>>> available.
>>>> Perhaps this is a bit simplistic, but it is notable that
>>>> applications and
>>>> developers now have another choice of what engine to use if indeed
>>>> this is
>>>> similar to the Oracle implementation, and was not available in other
>>>> products.
>>>
>>> I'm not speaking for IBM... standard disclaimer applies, but:
>>>
>>> In practice, I think this has the same results. Using this, you won't
>>> block when trying to read a row that has a lock (not a shared one,
>>> but an insert/update/delete lock). You will get whatever was there
>>> (or wasn't...) before the operation holding the lock.
>>>
>>> However, the underlying implementation is AFAIK (I'm not a
>>> developer...) completely different. Oracle is a versioned RDBMS like
>>> Postgres and I believe some engines used in mySQL. Informix is NOT.
>>> The Informix implementation is simpler (quicker?). If it hits a lock,
>>> it fetches the value from logical logs.
>>>
>>> SQL server has a similar implementation if I read and understood it's
>>> documentation correctly (since v2005 if I recall correctly).
>>>
>>> From my experience as DBA, this is THE feature that developers were
>>> wishing for. From some talks with colleagues and some customers I
>>> don't find the degree of enthusiasm I was expecting...
>>>
>>> I'll be very happy if my daily customer migrates to IDS 11 and I can
>>> use this feature. I'm "tired" of explaining the locking issues to
>>> developers that were trained only in Oracle...
>>>
>>> It will also make my daily discussions (friendly) with an Oracle DBA
>>> much less boring, since we tend to fall in this specific difference
>>>

>>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:37 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
UnixAdminTalk.com

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481