patrck
2010-08-23 13:22:06 UTC
Hi all,
We have more than 5 Million records in PrincipalObjectAccess Table. I have
learned that this table contains data about the shared records. However, in
our case we never share records, all users have security roles and this is
enough for us. Followings is the content of PrincipalObjectAccess Table:
select ObjectTypeCode, COUNT(ObjectTypeCode) as total
from PrincipalObjectAccess
group by ObjectTypeCode
order by total desc
ObjectTypeCode EntityName total
5 Annotation 3.166.458
4200 ActivityPointer 838.042
112 Incident 415.500
1 Account 38.087
4230 UserQuery 135
9100 Report 104
150 UserSettings 88
8 SystemUser 88
9106 MailMergeTemplate 20
2010 Template 3
4.458.525
As seen, there are more than 3 million records for Annotation entity
(Notes). Then I realized that a workflow assigns case to other departments
and create a note about this assignment.
In the organization settings there is and option to disable the automatic
sharing of records. This option is disabled from the beginning of crm
deployment.
So I wonder why new records are created in PrincipalObjectAccess Table?
(Because we never use sharing). Second, I wanna clear all content of
PrincipalObjectAccess Table, is there a supported way to accomplish this?
We have more than 5 Million records in PrincipalObjectAccess Table. I have
learned that this table contains data about the shared records. However, in
our case we never share records, all users have security roles and this is
enough for us. Followings is the content of PrincipalObjectAccess Table:
select ObjectTypeCode, COUNT(ObjectTypeCode) as total
from PrincipalObjectAccess
group by ObjectTypeCode
order by total desc
ObjectTypeCode EntityName total
5 Annotation 3.166.458
4200 ActivityPointer 838.042
112 Incident 415.500
1 Account 38.087
4230 UserQuery 135
9100 Report 104
150 UserSettings 88
8 SystemUser 88
9106 MailMergeTemplate 20
2010 Template 3
4.458.525
As seen, there are more than 3 million records for Annotation entity
(Notes). Then I realized that a workflow assigns case to other departments
and create a note about this assignment.
In the organization settings there is and option to disable the automatic
sharing of records. This option is disabled from the beginning of crm
deployment.
So I wonder why new records are created in PrincipalObjectAccess Table?
(Because we never use sharing). Second, I wanna clear all content of
PrincipalObjectAccess Table, is there a supported way to accomplish this?