Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
NT
Starting Member
1 Post |
Posted - 2002-07-08 : 12:35:09
|
| If have some problems with slow merge replication. If have read the completewhite paper 'Diagnosing and TroubleShooting Slow partitioned MergeProcesses.So, I have come to the point that I am looking at the partitioned views thathave been created and how to determine which of them run slow.Here is an example of such an partitioned view :SELECT *FROM dbo.ReportUser alias_05EFD3B2FE284E46964221C3A62F509DWHERE (ROWGUIDCOL IN (SELECT [ReportUser]. ROWGUIDCOL FROM [dbo].[ReportUser] [ReportUser],[ITOmniCRMMerge_Report_VIEW] [Report] WHERE (Report.ReportId =ReportUser.ReportId))) AND (IS_SRVROLEMEMBER('sysadmin') = 1) OR (ROWGUIDCOL IN (SELECT [ReportUser]. ROWGUIDCOL FROM [dbo].[ReportUser] [ReportUser],[ITOmniCRMMerge_Report_VIEW] [Report] WHERE (Report.ReportId =ReportUser.ReportId))) AND (IS_MEMBER('db_owner') = 1) OR (ROWGUIDCOL IN (SELECT [ReportUser]. ROWGUIDCOL FROM [dbo].[ReportUser] [ReportUser],[ITOmniCRMMerge_Report_VIEW] [Report] WHERE (Report.ReportId =ReportUser.ReportId))) AND (sessionproperty('replication_agent') = 1)My questio here is : Why all the OR statements. From my point of view itshould only include 1 where statement. Why the checkings likeIS_SRVROLEMEMBER('sysadmin')=1 and IS_MEMBER etc statements are added ?How can I prevent this ? May I adjust these views ?Thanks in advance |
|
|
|
|
|