Suggestion on Code PLSQL and concern for the Performance

Legends of dear,

We have the following code in place of a TRIGGER in a generation of report and as a Jr.DBA, I was able to analyze my development team does an AFTER DELETE or INSERT or UPDATE on a Table.

CREATE or REPLACE TRIGGER SOL_trigger

after delete or insert or update on SOL_MV

FOR EACH LINE

BEGIN

If the UPDATE can

UPDATE DIM_SOL

SET

DIM_SOL_ID =: new. DIM_SOL_ID,

ORGANIZATION_ID =:New.ORGANIZATION_ID,

SOL_ID =: new. SOL_ID,

CREATION_DATE =: new. CREATION_DATE,

..................

..................

where SOL_ID =: old. SOL_ID;

end if;

If the INSERTION

INSERT INTO DIM_SOL

VALUES)

: new. DIM_SOL_ID,

: new.ORGANIZATION_ID,.

: new. SOL_ID,

: new. CREATION_DATE,

...................

);

end if;

If REMOVE then

REMOVE FROM DIM_SOL

WHERE SOL_ID =: old. SOL_ID;

end if;

END;

/

My Question is:

1 will be this query gives any Performance issues when retrieving a large number of records as more than 100000. ?

2. this request may be adjusted better?

3 is there an order or sequence to perform an INSERTION DELETION or UPDATE? To avoid any competition or any other conflict?

4 or this request is better?

FYI--this request is now implemented and work very well so for. Just to acquire additional knowledge in terms of performance, I am looking for a better answer. Thanks in advance.

Thank you

Knockaert

c699f53e-f619-44F2-a5f7-3b1276d4f4d4 wrote:

My Question is:

1 will be this query gives any Performance issues when retrieving a large number of records as more than 100000. ?

By rΘcupΦre do you SELECT? SELECT has nothing to do with the trigger. The trigger code will not run when you run SELECT on the table.

2. this request may be adjusted better?

Query refers to the SELECT statement. I don't see any SELECT statement. What do you mean by query? The trigger code are you referring? I think the trigger code is simple and nothing much needs to be done.

3 is there an order or sequence to perform an INSERTION DELETION or UPDATE? To avoid any competition or any other conflict?

When the trigger is executed the event calling (insert, delete, or update) determines what part of the code in the trigger must be executed. All of them will not be executed in a single call. Its just one of the three.

4 or this request is better?

Still, once having no idea about what you're talking about. You use the query term very loosely without knowing its meaning, I suppose!

Tags: Database

Similar Questions

Maybe you are looking for

  • Y450 replacement AC adapter

    Lenovo sells Y450 replacement adapters more? Mine doesn't work more (no idea why). Model is ADP-65YB B and output is 19V 3. 42A. Thanks for your help!

  • Email & save the spreadsheet in pdf format based on cell references

    I'm using Mail_Every_Worksheet_With_Address_In_A1_PDF of Ron as an example and I would like to save and name the PDF to a folder using cells Ref: A2_Client name with a suffix of the name of the journal. For example: my documents/Clients ABC Company l

  • HP M6-w103dx: Best Buy Exclusive model HDD SSD

    Hello. Best Buy is running a Black Friday deal on a computer laptop touchscreen HP 2 in 1. Model # laptop as described on the website of Best Buy's "M6-W103DX. This exact model seems to appear when I search on the HP website. The laptop comes with a

  • Muse of the links in iFrame not to launch Apple Maps, but due to HTML.

    Go to this Web site and the date of May 28/29TOURClick on the 'map' and on your desktop, it will launch Apple Maps.If you try it on an iPhone, it will hold no cards of Apple.BUTIf you go to this site, where the direct file is at, it works perfectlyht

  • My scripts when redirecting to mobile?

    I tried to get call rail to show me the origins of appeal of my site from google, but it won't show me due to the redirection of site Office and apparently it does not work the CallRail script.CallRail told me that as long as the script is running, a