Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 提高业务应用程序的性能_C#_Sql_Winforms_Reporting Services_Triggers - Fatal编程技术网

C# 提高业务应用程序的性能

C# 提高业务应用程序的性能,c#,sql,winforms,reporting-services,triggers,C#,Sql,Winforms,Reporting Services,Triggers,我正在用C#windows的形式做一个商业应用程序。 每天大约输入10000个数据 After触发器的当前实现: 1. Filter relevant data from the base table and insert to the secondary table 2. Send email to users when there is an insert/delete/update to the secondary table. 3. exec stored procedure when

我正在用C#windows的形式做一个商业应用程序。 每天大约输入10000个数据

After触发器的当前实现:

1. Filter relevant data from the base table and insert to the secondary table
2. Send email to users when there is an insert/delete/update to the secondary table.
3. exec stored procedure when there is an insert/delete/update to the secondary table.
问题之一是在SSRS中显示报告时有时会出现死锁

单击一个部署 当前的实现是手动安装。没有在线更新 应该使用文件共享来部署它,以便可以检查更新

我应该为业务应用程序使用触发器吗?我不赞成使用触发器实现业务逻辑。因为很难在触发器中维护BL

2.)我已经看到,如果要更新批量记录,触发器不会对每条记录触发

3.)要解决性能问题,可以打开SQL探查器以获取跟踪文件。在该跟踪文件中,您可以分析死锁的位置

4.)网上有现成的DMV查询可供a.)获取最慢查询列表。b、 )未使用的索引(您可以删除这些索引)c.)缺失的索引(您可以添加新索引)d.)需要添加/删除列和更多的索引

4.)您可以对报告查询应用nolock查询提示以提高性能


5.)如果一切正常,那么您应该查看RDL。根据rdl中使用的函数,渲染有时也会消耗大量时间。

这不应该是一个问题,如果用户在处理数据时经常调用大量数据,您可以在ssrs报告中使用“with(no lock)”语句