Reduce the number of risk inputs processed per entity

Reduced from 999,999 to 10,000.
This commit is contained in:
Ryland Herrick 2023-09-20 14:20:09 -05:00
parent 82024c240a
commit f0eb8cf136

View file

@ -39,6 +39,8 @@ import type {
RiskScoreBucket,
} from './types';
const MAX_RISK_INPUTS_PER_IDENTITY = 10_000;
const bucketToResponse = ({
bucket,
now,
@ -183,7 +185,7 @@ const buildIdentifierTypeAggregation = ({
`,
combine_script: 'return state;',
params: {
max_risk_inputs_per_identity: 999999,
max_risk_inputs_per_identity: MAX_RISK_INPUTS_PER_IDENTITY,
p: 1.5,
risk_cap: 261.2,
},