Advertisement

09.24.2008 at 10:20AM PDT, ID: 23759522 | Points: 500
[x]
Attachment Details

Materialized Views - Fast Refresh for Latest Record with Join on second table

Asked by mj62mj62 in Oracle 10.x, Oracle Database

Tags: ,

Hello,

I have a situation where I want a table (or MV)  to be available for rapid querying in real time, but this table is always being updated.

What I want to display is the latest (most-recent) record for a given set of keys including a date-field. (not necessarily the most recently inserted, but the most recent based on a date field)  

One catch - the latest record cannot be the latest if it's parent record is already marked as 'deleted'.  Likewise, if the parent gets deleted, the MV needs to update set the latest record correctly by removing the latest and inserting whatever is now the latest.

Parent table: 1421 rows
Child Table: 105 million rows

As new records come in with later dates, they can now be the 'latest' record, but then the MV would have to remove the existing record it had that was the 'latest' previously before inserting the new one.

Can this be done in a very low latency way?  The 'keys' for each unique record make up 5 to 50 rows, so that many records would need to be considered each time there is an insert or update to the child table.

Thank you very much for your assistance!Start Free Trial
[+][-]09.24.2008 at 10:22AM PDT, ID: 22561847

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 10:35AM PDT, ID: 22561970

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 10:49AM PDT, ID: 22562119

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 01:26PM PDT, ID: 22563669

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 01:32PM PDT, ID: 22563722

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 01:39PM PDT, ID: 22563781

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 01:42PM PDT, ID: 22563805

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.24.2008 at 01:42PM PDT, ID: 22563809

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]09.25.2008 at 01:04AM PDT, ID: 22567054

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.30.2008 at 03:36PM PST, ID: 23065373

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628