Skip to content

Conversation

allenshen13
Copy link
Member

Add NoRandomDuplicates and Custom Stream Seeding Features

NoRandomDuplicates:

Prevents duplicate query selection during random execution until all queries have been executed at least once.

When true: Creates shuffled sequences of all queries, executing each query once before repeating any.

{
  "random_execution": true,
  "randomly_execute_until": "20",
  "no_random_duplicates": true,
  "query_files": [
    "../queries/complex-1.sql",
    "../queries/complex-2.sql",
    "../queries/complex-3_ordered.sql",
  }

Custom Streams and Seeding:

Purpose: Enables deterministic random behavior across stream instances while maintaining reproducibility.

Individual Stream Seeds:

{
  "streams": [
    {
      "stream_name": "query_stream.json",
      "stream_count": 3,
      "seeds": [12345, 67890, 11111]
    }
  ]
}

Base Stream Seed (applied to all instances with offset for each one):

{
  "streams": [
    {
      "stream_name": "query_stream.json", 
      "stream_count": 3,
      "seeds": [54321]
    }
  ]
}

@allenshen13 allenshen13 added the enhancement New feature or request label Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant