Skip to content

Conversation

@emmanuel-keller
Copy link
Contributor

@emmanuel-keller emmanuel-keller commented Nov 12, 2025

Problem

The fulltext scan tests (where_field_fulltext_*) were configured without LIMIT clauses, causing out-of-memory crashes when running benchmarks with large datasets and high concurrency.

Fulltext searches can match a large percentage of records in the dataset. With millions of records, each fulltext scan could attempt to load hundreds of thousands or millions of matching records into memory simultaneously. Combined with high concurrency settings (e.g., 48 clients × 24 threads = 1,152 concurrent operations), this resulted in memory exhaustion and the benchmark process being killed by the OS.

Solution

Added limit: 1000 to all where_field_fulltext_* scan configurations. This ensures:

  • Bounded memory usage per fulltext scan operation
  • Ability to run benchmarks with large datasets and high concurrency settings
  • More realistic query patterns (fulltext searches typically return paginated results)
  • Other conditional scans (integer equality, range queries) remain unchanged as they naturally return fewer results

Impact

Users can now successfully run benchmarks with large sample sizes (e.g., 5M records) and high concurrency without encountering OOM kills during fulltext scan operations.

@emmanuel-keller emmanuel-keller changed the title Add LIMIT clause to where_field scans to prevent OOM issues Add LIMIT clause to fulltext scans to prevent OOM issues Nov 12, 2025
@emmanuel-keller emmanuel-keller marked this pull request as ready for review November 12, 2025 20:03
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@emmanuel-keller emmanuel-keller merged commit 30c5435 into main Nov 19, 2025
33 checks passed
@emmanuel-keller emmanuel-keller deleted the emmanuel/limit_to_prevent_oom branch November 19, 2025 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants