XML staging - tables or files more efficient?

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
rhaddur
Participant
Posts: 52
Joined: Mon Mar 13, 2006 7:33 am
Location: mumbai

XML staging - tables or files more efficient?

Post by rhaddur »

Hi,

We are extracting data from a website I.E using hierarchical stage/XML stage and want place it in staging area.

XML file may contain 200 rows

Where should we place this staging data ?
Is it staging files or staging table

Which one is best approach?
Rhaddur
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

To me, there's a lot of "depends" in your answer. What happens next with them?
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

As a general rule storing only XML is easier achieved in files than in tables.

Storing XML plus other stuff changes the story.

What - exactly - do you need to achieve?

[Warning: every general rule has exceptions.]
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rhaddur
Participant
Posts: 52
Joined: Mon Mar 13, 2006 7:33 am
Location: mumbai

which is efficient way is it taging tables or staging files

Post by rhaddur »

Craig and Ray, thank you very much for your response.

The expectation is after we place XML output into staging table or staging file we would like to do some transformation and feed the output to target web based system either in the form of XML file or JSON string. Please tell which one is suitable here.

One more query, in this case should we use staging area? Or should we use Web service/REST API call fetch data and push to target website by calling another web service call?
Rhaddur
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I agree with Ray. I never store XML in tables. I would prefer to parse the XML and then write to a table. Then I can format it to whatever is need down the line. In a table you can also query it. It is easy to resend something. It is easy to reconcile. How many rows did I process on Tuesday? Lots of benefits. Easy to archive as well. Files are pain to maintain.
Mamu Kim
Post Reply