Skip to content

Migrate "batch strategy" enum to lookup table #586

Description

@maxachis

Currently, batches.batch_strategy exists as an enum, which must be manually updated every time a new collector is added.

This is often considered an antipattern, with the preferred approach being to develop a lookup table, perhaps batch_strategy, and batches.batch_strategy to batches.batch_strategy_id.

This way, it is trivial to add or remove another strategy, rather than having to develop a whole new enum.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions