DBohner-(db)
Legendary Poster
Someone else has done this - so I'm looking for feedback and insight....
File Structure looks like this:
A - Header Table
1 - Detail 1 Table
b - Detail of Detail 1 Table
We have several Applications and Reports - that summarize the Detail and the 'Detail of Detail' - and due to the I/0 - these processes can be very time consuming. The Summaries, via SQL, could be done 'almost instantaneous' - but because we are doing them via Select/Fetch/While loops - the processing is crazy-long.
One thought is to create SQL Views that are summaries of the Detail tables (Using the Primary Keys of the Parent and summarizing or averaging the detail). If we create these SQL Views, we could make them Virtual Tables - then do a single fetch against the Summary 'View' instead of hundreds of fetches.
What I don't know - is what is the overall system impact of creating a 'Summary' SQL View. Generally speaking, any time there would be an Insert, Update/Edit, Delete to the Detail data - that Summary SQL View would be 'auto-magically' updated by the database. How much system impact could occur when such I/O occurs to the Detail Records.
That said - who's done it, what issues occurred - and how was the experience?
Is this a path I want to pursue?
(db)
File Structure looks like this:
A - Header Table
1 - Detail 1 Table
b - Detail of Detail 1 Table
We have several Applications and Reports - that summarize the Detail and the 'Detail of Detail' - and due to the I/0 - these processes can be very time consuming. The Summaries, via SQL, could be done 'almost instantaneous' - but because we are doing them via Select/Fetch/While loops - the processing is crazy-long.
One thought is to create SQL Views that are summaries of the Detail tables (Using the Primary Keys of the Parent and summarizing or averaging the detail). If we create these SQL Views, we could make them Virtual Tables - then do a single fetch against the Summary 'View' instead of hundreds of fetches.
What I don't know - is what is the overall system impact of creating a 'Summary' SQL View. Generally speaking, any time there would be an Insert, Update/Edit, Delete to the Detail data - that Summary SQL View would be 'auto-magically' updated by the database. How much system impact could occur when such I/O occurs to the Detail Records.
That said - who's done it, what issues occurred - and how was the experience?
Is this a path I want to pursue?
(db)