Hi all,
We have a master table with detail records. Each detail record has another level of detailed records.
Our current print function is a retrieve of a composite datawindow. Printing is done for each master table record , but also reprinting afterwards is done a lot.
With millions of records , our retrieve function is getting too slow ( due to inherited bad key settings on the table).
I have the idea now of performing a describe of the datawindow after the first time it's printed and saving the syntax in the database on master table level. When a reprint is needed i can do a create of the saved syntax.
I am a bit hesitant of saving the syntax in the master table with millions of records.
Should i maybe better create a new table ? Or ... any other idea's ?
TIA
John
As usual , thanks for your reply/comment.
The fact is that the master table holds a million records , and due to bad indexing which we inherited , the retrieve of this composite datawindow is just taking too much time. We don't need to print millions of records, user just can select one master record and print it (with all the detail records) , but the actual retrieve of this composite dw is too slow.
So users print once the record has a certain status. But later on , this can be weeks/months/years later they need to do a reprint ( i know ). To speed up this reprint functionality i was thinking of doing a dw_describe of the composite dw, saving the syntax on the master table level when they first print it. So in case when they need to do a reprint we only need to retrieve this syntax from the master table (which has good indexing) instead of re-retrieving the composite datawindow, having 20 retrieves in different detail tables again.
It was just an idea i was having , not yet to sure if i will create the blob column on my master table ( ever tried adding a blob column to a database that has million records, resulting also in an empty blob column for the already created/printed records) or i will have a separate table with the describe syntax saved into ... ?
TIA
John