Skip to content

Conversation

@tsift
Copy link
Contributor

@tsift tsift commented Jan 7, 2026

Adds higher-level support for the "batch update rules" API which can be used to both update and create rules. Additionally updates "create rule" to utilize the new batch API.

@tsift tsift marked this pull request as ready for review January 8, 2026 15:27
@tsift tsift requested a review from alexluck-sift January 8, 2026 15:27
@tsift
Copy link
Contributor Author

tsift commented Jan 8, 2026

Additional verification from local testing showing the batch method approximately 10x better than with the previous "create_rule" workflow.

======================================================================
BENCHMARK RESULTS
======================================================================

Number of rules: 300

--- Individual Rule Creation ---
  Count:     300
  Min:       0.011 seconds
  Max:       0.053 seconds
  Average:   0.014 seconds
  Sum:       4.074 seconds

--- Batch Rule Creation ---
  Time:      0.394 seconds

--- Comparison ---
  Speedup:   10.34x faster (batch vs sum of individual)
  Time saved: 3.680 seconds

Similar results are achieved with a remote instance (which has realistic network latencies):

======================================================================
BENCHMARK RESULTS
======================================================================

Number of rules: 100

--- Individual Rule Creation ---
Count:     100
Min:       0.233 seconds
Max:       0.760 seconds
Average:   0.257 seconds
Sum:       25.680 seconds

--- Batch Rule Creation ---
Time:      2.713 seconds

--- Comparison ---
Speedup:   9.47x faster (batch vs sum of individual)
Time saved: 22.967 seconds

@tsift tsift requested a review from alexluck-sift January 8, 2026 17:03
alexluck-sift
alexluck-sift previously approved these changes Jan 8, 2026
@tsift tsift enabled auto-merge (squash) January 8, 2026 22:06
@tsift tsift merged commit be9be60 into main Jan 8, 2026
15 checks passed
@tsift tsift deleted the python/batch-rule-update-and-create-support branch January 8, 2026 22:18
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