Re[2]: HELP Informix Locks
Posted in 1996
Tolis, When I was using share mode lock with page mode lock in table, some times I run out of locks. I think because that it will count 1 lock per page, thus if you are updating many rows, you will use more than 1 lock. Anyway, do you know how many row locks can you have in one page. For example, if I want to update 1000 records in a table, do you know how may locks I will be using in share mode with page lock? We are using On-line 5.x. Thank Susik ______________________________ Reply Separator _________________________________ >Subject: Re: HELP Informix Locks >Author: INTERNET:tvarnas@compulink.gr at CSERVE >Date: 6/27/96 5:50 PM > > >Sender: informix-list-owner@rmy.emory.edu >Received: from rmy.rmy.emory.edu (rmy.rmy.emory.edu [170.140.97.4]) by >dub-img-2.compuserve.com (8.6.10/5.950515) > id SAA17549; Thu, 27 Jun 1996 18:49:20 -0400 >Received: (from ilist@localhost) by rmy.rmy.emory.edu (8.7.1/8.7.1) id >SAA29188 for susik_lee@united#u#group.ccmail.compuserve.com; Thu, 27 Jun 1996 >18:49:43 -0400 (EDT) >X-Authentication-Warning: athena.compulink.gr: Host macedon.compulink.gr >[193.92.197.33] didn't use HELO protocol >Message-ID: <31D37E9B.512@compulink.gr> >Date: Thu, 27 Jun 1996 23:41:31 -0700 >From: Apostolos Varnas <tvarnas@compulink.gr> >X-Mailer: Mozilla 2.0 (Win16; I) >MIME-Version: 1.0 >To: Vilnis Sube <vilnis@xlpt.demon.co.uk> >CC: informix-list@rmy.emory.edu >Subject: Re: HELP Informix Locks >References: <835880616.19627.0@xlpt.demon.co.uk> >Content-Type: text/plain; charset=us-ascii >Content-Transfer-Encoding: 7bit >Sender: informix-list-owner@rmy.emory.edu >Reply-To: Apostolos Varnas <tvarnas@compulink.gr> >X-Informix-List-To: susik_lee@united#u#group.ccmail.compuserve.com >X-Informix-List-Id: <list.10525> Vilnis Sube wrote: > > Does anybody know why Informix-Online 5.0 consumes locks at an > incredible rate when updating a table even though the following > statement has been issued: > > LOCK TABLE test IN SHARE MODE > > The lock type generated as shown by tbstat -k is HDR. > > Thanks in advance > Vil Hi Vil, it has to do with the lock mode of your table.If it is page mode it will only place 1 lock on the table.If it is row mode it will place a lock on every row even if you issued a lock table .. in share mode before. If you however issue a lock table in exclusive mode it will place only 1 lock regardless of the lock mode of the table.I am not sure if this is a feature or a bug. Regards Tolis +---------------------------------------------------------------------+ | V+K Relational Solutions email: tvarnas@compulink.gr | | Deligiorgi 26 tvarnas@orbit.de | | 546 42 Thessaloniki Voice: (30) 31 820270 | | Greece Fax: (30) 31 865463 | +---------------------------------------------------------------------+