Skip to content

Pr 735#3

Closed
aicodeguard wants to merge 13 commits intomainfrom
pr-735
Closed

Pr 735#3
aicodeguard wants to merge 13 commits intomainfrom
pr-735

Conversation

@aicodeguard
Copy link
Copy Markdown
Owner

@aicodeguard aicodeguard commented Dec 10, 2025

Enhancement, Tests


  • Optimized document read path with single-pass processor combining decode+casting

  • Bulk relationship write operations reducing query count for M2M, O2M, M2O relationships

  • New DocumentProcessor class with filter support and batch processing capabilities

  • Comprehensive benchmarking suite for performance validation and parity testing


Changes walkthrough

Relevant files
Enhancement
5 files
Database.php
Single-pass processor integration and bulk relationship optimizations
+541/-19
DocumentProcessor.php
New single-pass document processor combining decode and casting
+553/-0 
Adapter.php
Abstract method for bulk update by IDs with default fallback
+26/-0   
SQL.php
SQL implementation of bulk update for many documents by IDs
+72/-0   
Pool.php
Delegation of bulk update method to underlying adapter
+5/-0     
Tests
5 files
DocumentProcessorTest.php
Unit tests verifying DocumentProcessor parity with legacy decode+casting
+367/-0 
document_processor_benchmark.php
Benchmark comparing single-pass processor against baseline with filter support
+476/-0 
relationship_write_benchmark.php
Benchmark measuring bulk relationship write performance across all relationship types
+289/-0 
run-benchmark.sh
Shell script orchestrating relationship write benchmark with Docker
+121/-0 
run-processor-benchmark.sh
Shell script orchestrating document processor benchmark with Docker
+25/-0   

Need help?
  • Type /help how to ... in the comments thread for any questions about CodeProt usage.
  • Check out the documentation for more information.
  • @aicodeguard aicodeguard reopened this Dec 10, 2025
    Repository owner deleted a comment from codeprotai bot Dec 10, 2025
    @codeprotai codeprotai bot added enhancement New feature or request Tests labels Dec 10, 2025
    @aicodeguard aicodeguard reopened this Dec 10, 2025
    @aicodeguard aicodeguard reopened this Dec 10, 2025
    Repository owner deleted a comment from codeprotai bot Dec 10, 2025
    Repository owner deleted a comment from codeprotai bot Dec 10, 2025
    @aicodeguard aicodeguard reopened this Dec 10, 2025
    @aicodeguard aicodeguard reopened this Dec 10, 2025
    @aicodeguard aicodeguard reopened this Dec 10, 2025
    Repository owner deleted a comment from codeprotai bot Dec 10, 2025
    Repository owner deleted a comment from codeprotai bot Dec 10, 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 Tests

    Projects

    None yet

    Development

    Successfully merging this pull request may close these issues.

    2 participants