Hi Guys,
I have a general performance question. We are in the process of building an application which requires a lot of SQL Server processing on incoming data before clients can use it. Incoming data is actually stored in a table.
This data can be processed in two ways -
1) have a trigger on the table which executes the stored procedure as soon as a row is inserted into the table
OR
2) create a job which has the stored procedure and the job executes every minute and processes all the new rows in the table.
During processing, data is retrieved, compared, updated, deleted or inserted based on various business rules involving atleast a set of 20 tables. It is imperative that processing should happen as early as possible from the time data was inserted in the table.
I have also toyed with the idea of an external application doing this processing but this idea is not really fun since lots of data is needed during comparison of each row.
I would love to hear opinions on which option might be better or if there is a third option to accomplish this. I am in the process of testing both these options right now.
Thanks and appreciate all your comments
R
I have a general performance question. We are in the process of building an application which requires a lot of SQL Server processing on incoming data before clients can use it. Incoming data is actually stored in a table.
This data can be processed in two ways -
1) have a trigger on the table which executes the stored procedure as soon as a row is inserted into the table
OR
2) create a job which has the stored procedure and the job executes every minute and processes all the new rows in the table.
During processing, data is retrieved, compared, updated, deleted or inserted based on various business rules involving atleast a set of 20 tables. It is imperative that processing should happen as early as possible from the time data was inserted in the table.
I have also toyed with the idea of an external application doing this processing but this idea is not really fun since lots of data is needed during comparison of each row.
I would love to hear opinions on which option might be better or if there is a third option to accomplish this. I am in the process of testing both these options right now.
Thanks and appreciate all your comments
R