The trigger below delays my insert response. How can I prevent this?
create or replace TRIGGER GETHTTPONINSERT BEFORE INSERT ON TABLENAME FOR EACH ROW Declare -- BEGIN -- The inserted data is transfered via HTTP to a remote location END;
EDIT People tell me to do batch jobs, but I'd rather have the data sooner than have 100% consistency. The advantage of a trigger is that this happens as soon as the data arrives, but I cannot afford to delay the response of the insert.
There is an ideal solution for this exact situation called database change notification.
You can think of it almost exactly as an asynchronous trigger.
DBMS_Change_Notification, , , . DML DDL, Oracle ( 10 ). sproc , rowid ... , , HTTP. . 10gR2
, dbms_job, () http. dbms_job , , .
. http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:7267435205059 - , .
, , , , , X . , , .
Oracle? http . , ? hhtp send , .
, , .... Else, , , TRIGGER INSERT.
Or maybe you could give us more detailed information about what you need exactly?
Source: https://habr.com/ru/post/1714607/More articles:How to make Silverlight UserControl a content container? - .netDrag and drop feedback in JTree using custom TreeCellRenderer (Java, Swing) - javaHow to make ASP.NET MVC links written in different alphabets - seoHow to save and read an array from an INI file? - delphiusing .NET Assemblies in Delphi - c #How can I create an MSI package name according to its version? - visual-studioHelp me understand this trace from the twisted.words msn example - pythonC # Application Debugging - debuggingСлучайное исключение аутентификации AuthenticationManager CustomTargetNameDictionary при вызове службы WCF - authenticationWhere can I request credentials in oracle database? - oracleAll Articles