We are seeing excessive versioning in out IQ database server
Other
Versions:
39393 =
130Gb
When I execute sp_iqtransaction I see 39K transactions most in commited state .
We think it is this spid in IQ:
Name:
Userid:
tsgops
LastReqTime: 2006-06-13
16:26:28.450
ReqType:
STMT_EXECUTE_ANY_IMM
IQCmdType:
RELEASESAVEPOINT
LastIQCmdTime: Jun 13 2006
4:26PM
IQCursors:
0
LowestIQCursorState: NONE
IQthreads:
1
TxnID:
16353114
ConnCreateTime: Jun 13 2006
1:10PM
TempTableSpaceKB:
93480
TempWorkSpaceKB: 128
IQconnID:
94
satoiq_count: 216108
iqtosa_count: 1669301
CommLink:
local
NodeAddr:
LastIdle:
8
Dbremote:
0
Which had been executing since 1:10PM.
Does anyone know what RELEASESAVEPOINT cmd type is?
What could be the reason for not releasing
the versions and queuing up in dbspace?
I've told the user to load up the IQ table in batches which is more efficient as he is doing 1 single row inserts.
Why would single row insert create all these versions? The read activity on this server is minimal as this is our dev box. (only 3 users connected.
Thanks
David Louie
Database Administration
BlackRock
Solutions
(212) 810-3541
--
Ron Watkins
602.547.9342 (w)
602.743.5272 (c)
David,
Each commit is a version, so if each insert or load table get committed
separately and a large number of loads are performed then this would result
in a large number of versions as you described in your email. In versioning
a transaction is a version. You can see the pages created and pages
destroyed in sp_iqtransaction. IQ will keep a version around only as long
as necessary. IQ also removes Intermediate versions, these are versions
that can not be used based on their transaction id and all the connection
transaction id's of the database connections. Use sp_iqconection to
identify the connection(s) which is preventing versions from getting
released, it has the lowest transaction id.
Even it you load periodically you are going to have versions. It would be
much more efficient to load tables in larger transactions preferably with
the load table statement. The speed of individual inserts and wasted IQ
processing power will easily justify moving to a periodic loading. Data
currency will also get better as IQ is less likely to fall behind. IQ is
very good at ETL processing so loading a large number of rows into a
staging table and then processing the load data it is a commonly used
technique.
John Barton
Principal Systems Consultant
Sybase Inc. - OEM Business Unit
Office: 602-346-5179
Mobile: 602-418-4308
john....@sybase.com
============================================================
"Louie, David"
krock.com> To
Sent by: "Mark Mumy" ,
owner-iqug@ods4o.
odshp.com cc
Subject
06/13/2006 06:47 RE: Excessive Transaction
PM Versioning
Mark,
The user is putting data into a file (1 row / file) . Generic load process
picks up the file into an IQ #temp table and insert from the #temp table
into IQ table. Basically he's single row inserting data into an IQ table!
I told him IQ is better for bulk loading verses single row inserts. This
would explain the SA to IQ and IQ to SA high counts.
Would single row inserts cause excessive versioning verses bulk inserting
the preferred method of loading an IQ table?
Thanks
-David
From: Mark Mumy [mailto:mark...@sybase.com]
Sent: Tuesday, June 13, 2006 6:02 PM
To: Louie, David; iq...@odscompanies.com
Subject: RE: Excessive Transaction Versioning
David,
On the surface it looks like this connection isn't issuing a commit along
the way. It is doing a lot of work (the SA to IQ and IQ to SA counts are
high meaning a lot of stuff is moving back and forth internally).
Do you know what this connection is doing? That might help shed some light
on the issue.
Mark
============================================================
Mark D. Mumy
Principal Systems Consultant
Sybase, Inc.
VOICE: 972.687.6478
MOBILE: 972.839.9346
mailto:Mark...@sybase.com
============================================================
"The greatest accomplishment is not in never falling,
but in rising again after you fall." -- Vince Lombardi
From: owner...@ods4o.odshp.com [mailto:owner...@ods4o.odshp.com] On
Send instant messages to your online friends http://in.messenger.yahoo.com
Stay connected with your friends even when away from PC. Link:
http://in.mobile.yahoo.com/new/messenger/