Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4084148
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T18:24:10+00:00 2026-05-20T18:24:10+00:00

I have a table witch is in intense workload lest say T1 (about 100

  • 0

I have a table witch is in intense workload lest say T1 (about 100 updates per second, about 300k rows)

And in second table T2 I would like to update rows, based on they’re state in T1, I know that it can be easily done by triggers, but in my scenario triggers have massive impact on performance and reduces T1 performance to about 10 updates per second…

Now I have created temporary table T3 and I SELECT INTO it the T1 state, after that I do MERGE INTO T1 USING T3.

But still SELECT INTO temp table is to big cost.

Is there any way that I can achieve my scenario without massive reduce of Update operations on T1?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T18:24:10+00:00Added an answer on May 20, 2026 at 6:24 pm

    In general, I’d have questions about the data model if you find yourself regularly updating T2 based on the data in T1 in what sounds like a very OLTP-type system. That implies to me a lack of normalization that is concerning. You may have a perfectly valid reason for having a separate T2 table that replicates some of the data in T1 (i.e. you’re trying to support DSS-type queries with a denormalized object in addition to the OLTP-type queries with the normalized objects) in which case it would be useful to understand the business purpose of T2.

    If this is a case of trying to support DSS-type queries with a denormalized object that combines data from multiple normalized tables, my first thought would be to create T2 as a materialized view, not as a table. Your materialized view can be incrementally refreshed on a scheduled interval (it can also be refreshed when changes are committed but since that happens synchronously, it would likely slow down the inserting sessions). You’d need materialized view logs on the base tables which would add some overhead to the DML operations but it will be less than the overhead of a trigger particularly if each update is updating 300-ish rows (assuming that the 300k is the number of rows updated for the 100 updates per second).

    You could also use Streams to maintain T2. This would essentially eliminate the overhead of tracking changes on the DML operations because Streams is just reading the redo data. You’d have to enable supplemental logging if it’s not already enabled which may marginally increase the amount of data written to redo, but it’s unlikely that would be noticable. It will be a bit more work to configure Streams, however– you’d need to write a custom apply handler that would take the changes from T1 and update T2. And T2 would always lag T1 by at least a few seconds.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table with game scores, allowing multiple rows per account id: scores
I have table with 20 to 30 rows and 3 columns. I would like
I have a table with more than a millon rows. This table is used
I have a table with a Date column, and I would like to do
I have a table with say 3 columns. There's no primary key so there
I have a simple table with persons, but there is a additional field witch
I have table witch contains fields: id, parent_id, name (etc.) i want to order
I have few DB tables, witch are build using inheritance from one table witch
I have a static large array-of-arrays, witch represents tree structure with about ~100k nodes,
I have a script that appends some rows to a table. One of the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.