Skip to content

Deterministic fixture output #4

Description

@radim

Right now if fixturize is run against unchanged data it might product two different fixtures.

  • table list in metadata comes from a Go map (random order)
  • rows in extracted tables have unpredictable order (no ORDER BY)
  • with limit, random selection and FK traversal makes it even worse

Obvious fix is to use ORDER BY and pay the price, but migth be overkill for majority of the use cases.

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

    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