Hi,
I've just started a new project for a client using DataStage v8.0, using Netezza as the target databse.
I am new to Netezza, but apprantly they are unable to update an exisitng row in a Netezza table. I've searched the documentation, I can only see Append, Create, Replace and Truncate options.
Am I missing something obvious or does the Netezza stage not allow any updates?
Any suggestions would be appreciated.
Rgds
Hitesh
How to update a row using Netezza
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
It's the stage that does not permit updates, while your Write Method is set to use direct writes - effectively bulk load. Experiment with other values of Write Method and Write Mode properties, and you will probably encounter some form of Upsert being available.
I also have not used this stage type - the above is based on how other Enterprise stage types work. If the Netezza Enterprise stage does not have an Upsert (which I would find very surprising) there is always the ODBC Enterprise stage.
I also have not used this stage type - the above is based on how other Enterprise stage types work. If the Netezza Enterprise stage does not have an Upsert (which I would find very surprising) there is always the ODBC Enterprise stage.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 64
- Joined: Wed Sep 26, 2007 6:52 am
- Location: Syracuse ,NY
-
- Participant
- Posts: 145
- Joined: Fri May 02, 2003 9:59 am
- Location: Seattle, Washington. USA
Hitesh,
You do not (I really mean DO NOT) want to use the ODBC stage to do an update in Netezza. Netezza has no indexes and the ODBC issues singleton updates. The combination of the two with results in significantly poor performance (we had a table that was updating at a speed of 1 row every 15 seconds).
You have 2 options.
1) Talk to IBM and get the new Netezza stage. We have done a lot of work with them to resolve these performance issues and they have added the ability to bulk update as well as a bulk extract to the stage.
2) If you cannot update the stage, you can bulk load the data into a staging table and do an update SQL statement after the load.
You do not (I really mean DO NOT) want to use the ODBC stage to do an update in Netezza. Netezza has no indexes and the ODBC issues singleton updates. The combination of the two with results in significantly poor performance (we had a table that was updating at a speed of 1 row every 15 seconds).
You have 2 options.
1) Talk to IBM and get the new Netezza stage. We have done a lot of work with them to resolve these performance issues and they have added the ability to bulk update as well as a bulk extract to the stage.
2) If you cannot update the stage, you can bulk load the data into a staging table and do an update SQL statement after the load.
Shawn Ramsey
"It is a mistake to think you can solve any major problems just with potatoes."
-- Douglas Adams
"It is a mistake to think you can solve any major problems just with potatoes."
-- Douglas Adams