Closed pihman closed 6 years ago
Fixes a race condition that leads to multiple participant records for the same experiment/identity. This could even lead to users w/ participation records in two different segments!!!
Thread A: ab_test(:my_experiment) => seen=0 Thread B: ab_test(:my_experiment) => seen=1
ab_test(:my_experiment)
Solution:
vanity_participants(experiment_id, identity)
dupe PR
Fixes a race condition that leads to multiple participant records for the same experiment/identity. This could even lead to users w/ participation records in two different segments!!!
Thread A:
ab_test(:my_experiment)
=> seen=0 Thread B:ab_test(:my_experiment)
=> seen=1Solution:
vanity_participants(experiment_id, identity)
(convert the existing index).