Re: Update big tables !
Posted in 1998
Maciej Sawicki wrote: > Rok Vi'intin wrote: > > > I'm using Informix 7.30 and BUFFERED database. > > > > I want to update very big table and Long transaction error appears. > > I usually do in this way: > > 1. change database mode to NON LOGGING. > > 2. update a table > > 3. chnage database mode to BUFFERED again. > > > > Is teher any shortcut to do it. > > > > Try the following: > > Lock table in exclusive mode, update and unlock table. > Although it may not work in every situation, it solved my problems with > updateing large tables. > > Maciek. That solution only reduces the number of locks used. It will not reduce the amount of updates written to the transaction logs. I do not know of any other method of updating a very large table, other than: - adding more logs or - changing the database to no logging before the update. I usually use the latter, as I don't normally have the luxury of enough space to add enough logs (sigh)... Anthony Burkitt Systems Engineer - Library Division Geac Computers (Australia) anthony@geac.com.au