Unix Technical Forum

Re: Let me be the first

This is a discussion on Re: Let me be the first within the Informix forums, part of the Database Server Software category; --> >> - http://docs.rinet.ru/InforSmes/ch15/ch15.htm ( For an index, three >> more locks are necessary--one lock for the accessed row, one ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 01:06 PM
Lukas Barton
 
Posts: n/a
Default Re: Let me be the first


>> - http://docs.rinet.ru/InforSmes/ch15/ch15.htm ( For an index, three
>> more locks are necessary--one lock for the accessed row, one for the row
>> before the accessed row, and one for the row after the accessed row)
>>

>
> Which version of IDS does this refer to?
>
> In any event, I never realised I was this lucky before. <preen> Maybe I'll
> enter the Lottery this weekend.
>

I use IDS 10.0 on Windows.
Here is statement sequention to demonstrate my problem:

Thread1:
UPDATE TABLE table1 SET col1=10 WHERE col2=15;
..... further processing for 10 minutes....


Thread2:
SELECT * FROM TABLE table1 WHERE col2=20;
(locked until thread1 finished).


There is index on col1 and col2.

Lukas


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 01:07 PM
scottishpoet
 
Posts: n/a
Default Re: Let me be the first

Lukas, if the below fails then I still think you are using page level
rather than row level locking


> I use IDS 10.0 on Windows.
> Here is statement sequention to demonstrate my problem:
>
> Thread1:
> UPDATE TABLE table1 SET col1=10 WHERE col2=15;
> .... further processing for 10 minutes....
>
>
> Thread2:
> SELECT * FROM TABLE table1 WHERE col2=20;
> (locked until thread1 finished).
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 01:07 PM
Lukas Barton
 
Posts: n/a
Default Re: Let me be the first

scottishpoet wrote:

>Lukas, if the below fails then I still think you are using page level
>rather than row level locking
>
>

Not at all:

The number of rows in the table is small enough to cause the database
server to perform a sequential scan, and an index scan on a table with
lock mode configured to row.

It's my fault :-(
If I looked at access plan I could resolve this problem myself.
Informix gave me a good lection of database implementation.

Lukas
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 11:43 AM.


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