We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 73d2b6b commit fd681b1Copy full SHA for fd681b1
OptimizelySDKUserProfileService/OptimizelySDKUserProfileService/OPTLYUserProfileService.m
@@ -165,6 +165,9 @@ - (void)removeInvalidExperimentsForAllUsers:(NSArray<NSString *> *)validExperime
165
NSMutableDictionary *userProfileDict = [userProfileService[key] mutableCopy];
166
NSDictionary * bucketMap = userProfileDict[@"experiment_bucket_map"];
167
NSMutableDictionary *newBucketMap = [bucketMap mutableCopy];
168
+ if (bucketMap.count < 100) {
169
+ continue;
170
+ }
171
for (NSString *exId in bucketMap.allKeys) {
172
if (![validExperimentIds containsObject:exId]) {
173
[newBucketMap removeObjectForKey:exId];
0 commit comments