WTPrincipalCache サイズの手動計算
WTPrincipalCache サイズを手動で計算する手順
WTPrincipalCache サイズを手動で計算するには、以下の手順に従います。
キャッシュサイズの計算式 (3*A)+(2*B)+C+(2*D) を使用します。ここで、
1. A はシステム内のアクティブなユーザーの数を表します (disabled=0)。
2. B はユーザー定義グループの数を表します (status='public' および disabled=0)。
3. C はシステムグループの数を表します (status='system' および disabled=0)。
4. D はシステム内のアクティブな組織の数を表します (disabled=0)。
WTPrincipalCache サイズを計算する際には以下の点を考慮する必要があります。
データベース検索を回避するため、WTPrincipalCache の値が A、B、C、D の合計より大きくなければなりません。
A+B+C+D が wt.cache.size.WTPrincipalCache の現在の設定に近い場合、計算式 (3*A)+(2*B)+C+(2*D) に従って WTPrincipalCache の値を大きくすることを検討してください。
結果を生成する照会は以下のとおりです。
1. Oracle の場合:
select sum(Total) from (
select exp(sum(ln(Total))) as Total from (select 3 as Total from dual union all select count(*) as Total fromWTUserwhere disabled=0) union all
select exp(sum(ln(Total))) as Total from (select 2 as Total from dual union all select count(*) as Total from WTGroup where lower(status)='public' and disabled=0) union all
select count(*) as Total from WTGroup where disabled=0 and lower(status)='system' union all
select exp(sum(ln(Total))) as Total from (select 2 as Total from dual union all select count(*) as Total fromWTOrganizationwheredisabled=0)
);
2. SQL Server の場合:
select sum(wtp.Total) from (
select exp(sum(log(wtu.Total))) as Total from (select 3 as Total union all select count(*) as Total from WTUser where disabled=0) as wtu
union all
select exp(sum(log(wtg.Total))) as Total from (select 2 as Total union all select count(*) as Total from WTGroup where disabled=0 and lower(status)='public') as wtg
union all
select count(*) as Total from WTGroup where internal=1 and disabled=0 and lower(status)='system'
union all
select exp(sum(log(wto.Total))) as Total from (select 2 as Total union all select count(*) as Total from WTOrganization where disabled=0) as wto
) as wtp;
これは役に立ちましたか?