Hello, I’m currently implementing GrowthBook at my organization, so far I’m liking the experiment analysis side of it, and we’re now starting to look at creating new experiments using Features Flagging. Need some help in analyzing these feature flag based experiments:
In our custom-code experiments we stored an AB flag in our users table, so it was easy to create the Experiment Assignment Queries.
However we would’ve hoped that once we started using the GrowthBook Feature Flagging we wouldn’t need to store the variant assignments in our database, but do the hashing of the unit identifier given a query that calculates the attributes. We’ve done this in the past by hand, e.g. in Snowflake doing the same MD5 hash of the userid in the query, the same hashing that is done in the backend at feature assignment time:
SELECT
user_id,
'experiment_id' as experiment_id,
case
when (to_number(left(md5(concat(user_id, 'hc_channel_v3')), 8),'XXXXXXXX')::bigint::float / 4294967295::float <= 0.5) then 'variant_B'
else 'variant_A'
end as variation_id
FROM
users as u
I understand the recommended approach is to send an event with the assignment, but is re-doing the hashing on the query something that is supported / recommended as well?