Hello to everybody,
This is my first question in this forum, and I sincerely apologies for my bad English.
We use allot of triggers in the database (Write and Delete).
These triggers are writing in programs .P and we put them in the database with NO path:
Ex:
Event Procedure
Delete tr040-sn.p
We put the triggers in a library and we use the parameter -trigg in the client .pf to put the path to the library, in the library indicated by the -trigg we only have the triggers use in the application.
Normally we have the database in Linux or Solaris, and the programs and triggers in the W2000.
We notes that when override the DataBase triggers and put them in the source code of the programs (we passed the source code from the triggers and put them in the programs) that improves the performance in more the 300% a program who takes 10 minutes passed to 3 minutes.
Can somebody explain the best way to work with triggers?
Ex:
1 - In the programs o write or delete the records
2 - In the Data Base, directly write the source code in them
3 - In External programs but associated with the database.

This is my first question in this forum, and I sincerely apologies for my bad English.
We use allot of triggers in the database (Write and Delete).
These triggers are writing in programs .P and we put them in the database with NO path:
Ex:
Event Procedure
Delete tr040-sn.p
We put the triggers in a library and we use the parameter -trigg in the client .pf to put the path to the library, in the library indicated by the -trigg we only have the triggers use in the application.
Normally we have the database in Linux or Solaris, and the programs and triggers in the W2000.
We notes that when override the DataBase triggers and put them in the source code of the programs (we passed the source code from the triggers and put them in the programs) that improves the performance in more the 300% a program who takes 10 minutes passed to 3 minutes.
Can somebody explain the best way to work with triggers?
Ex:
1 - In the programs o write or delete the records
2 - In the Data Base, directly write the source code in them
3 - In External programs but associated with the database.
