From 4076f9dd67350135eb596742c297cd2ab921df67 Mon Sep 17 00:00:00 2001 From: konard Date: Sun, 28 Dec 2025 22:58:04 +0100 Subject: [PATCH 1/3] Initial commit with task details Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: https://github.com/linksplatform/Comparisons.PostgreSQLVSDoublets/issues/17 --- CLAUDE.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 0000000..1fd76b1 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,5 @@ +Issue to solve: https://github.com/linksplatform/Comparisons.PostgreSQLVSDoublets/issues/17 +Your prepared branch: issue-17-1a453f4f4a81 +Your prepared working directory: /tmp/gh-issue-solver-1766959082343 + +Proceed. From 734f3502a1d96f646a1676ec7e32e480a88c2774 Mon Sep 17 00:00:00 2001 From: konard Date: Sun, 28 Dec 2025 23:04:13 +0100 Subject: [PATCH 2/3] Reduce benchmark link counts to prevent CI timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - BENCHMARK_LINKS: 1000 → 100 for main branch (10x reduction) - BENCHMARK_BACKGROUND_LINKS: 100000 → 1000 for main branch (100x reduction) - Updated default values in Rust code to match The benchmark was taking 6+ hours and timing out because with 100,000 background links per iteration, PostgreSQL operations were too slow. Criterion warned: "Unable to complete 100 samples in 5.0s. You may wish to increase target time to 15547.2s" Fixes #17 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 --- .github/workflows/rust.yml | 8 ++++---- rust/src/lib.rs | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 0639608..278ef45 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -66,10 +66,10 @@ jobs: POSTGRES_USER: postgres POSTGRES_PASSWORD: postgres POSTGRES_DB: postgres - # Use 1000 links for main/master branch benchmarks, 10 for pull requests - BENCHMARK_LINKS: ${{ (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')) && '1000' || '10' }} - # Use 100000 background links for main/master branch, 100 for pull requests - BENCHMARK_BACKGROUND_LINKS: ${{ (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')) && '100000' || '100' }} + # Use 100 links for main/master branch benchmarks, 10 for pull requests + BENCHMARK_LINKS: ${{ (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')) && '100' || '10' }} + # Use 1000 background links for main/master branch, 100 for pull requests + BENCHMARK_BACKGROUND_LINKS: ${{ (github.event_name == 'push' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master')) && '1000' || '100' }} run: | set -o pipefail cargo bench --bench bench -- --output-format bencher | tee out.txt diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 3743ea2..498a527 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -50,22 +50,22 @@ pub type Result> = result::Result usize { env::var("BENCHMARK_BACKGROUND_LINKS") .ok() .and_then(|s| s.parse().ok()) - .unwrap_or(3_000) + .unwrap_or(1_000) } /// Number of links to create/update/delete in each benchmark operation. /// Configurable via BENCHMARK_LINKS environment variable. -/// Default: 1000 (for local testing), CI uses 10 for PRs and 1000 for main branch. +/// Default: 100 (for local testing), CI uses 10 for PRs and 100 for main branch. pub fn benchmark_links() -> usize { env::var("BENCHMARK_LINKS") .ok() .and_then(|s| s.parse().ok()) - .unwrap_or(1_000) + .unwrap_or(100) } const PARAMS: &str = "user=postgres dbname=postgres password=postgres host=localhost port=5432"; From 2bea65b0f2412cdc82162ac51cf146020d818d34 Mon Sep 17 00:00:00 2001 From: konard Date: Sun, 28 Dec 2025 23:33:54 +0100 Subject: [PATCH 3/3] Revert "Initial commit with task details" This reverts commit 4076f9dd67350135eb596742c297cd2ab921df67. --- CLAUDE.md | 5 ----- 1 file changed, 5 deletions(-) delete mode 100644 CLAUDE.md diff --git a/CLAUDE.md b/CLAUDE.md deleted file mode 100644 index 1fd76b1..0000000 --- a/CLAUDE.md +++ /dev/null @@ -1,5 +0,0 @@ -Issue to solve: https://github.com/linksplatform/Comparisons.PostgreSQLVSDoublets/issues/17 -Your prepared branch: issue-17-1a453f4f4a81 -Your prepared working directory: /tmp/gh-issue-solver-1766959082343 - -Proceed.