Reading View

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
saugat_1982
Participant
Posts: 29
Joined: Mon Nov 20, 2006 7:17 am
Location: Melbourne

Reading View

Post by saugat_1982 »

Can Datastage 7.5.2 read views from Source tables?
Saugat Dey
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Yes. But the cost of materializing the view may be one that you wish to avoid.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
saugat_1982
Participant
Posts: 29
Joined: Mon Nov 20, 2006 7:17 am
Location: Melbourne

Post by saugat_1982 »

ray.wurlod wrote:Yes. But the cost of materializing the view may be one that you wish to avoid. ...

Please tell me why Cost will be high?
Saugat Dey
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Imagine that the SELECT statement that defines the view selects 10 million rows, and when you select from the view you want only 10,000 of these.

Selecting from the view means that the first, large, SELECT has to occur to materialize the view, and only then can your second, small, SELECT proceed.

If you had selected the 10,000 rows from the base table, only the small SELECT would need to be executed.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
saugat_1982
Participant
Posts: 29
Joined: Mon Nov 20, 2006 7:17 am
Location: Melbourne

Post by saugat_1982 »

ray.wurlod wrote:Imagine that the SELECT statement that defines the view selects 10 million rows, and when you select from the view you want only 10,000 of these.

Selecting from the view means that the first, large ...

Thanks Ray ......the info is really informative
Saugat Dey
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Can you mark this thread as resolved, then?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply