Skip to content

A single ab_test call triggers multiple Redis commands for all experiments  #600

Description

@phstc

Describe the bug

ab_test triggers multiple Redis commands for all experiments for a single experiment ab_test(:experiment_1) call.

If in a single request flow I call ab_test(:experiment_1), ab_test(:experiment_2) and ab_test(:experiment_3) it will perform multiple commands for the same experiments overloading Redis.

To Reproduce

Open redis-cli monitor then:

ab_test(:experiment_1)

A single call will perform get, hget, type, lrange etc for all other experiments defined in the experiments.yml.

Expected behavior

Redis calls only for the given experiment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions