Skip to content

PERF-12 · Bulk-insert scan details #75

Description

@kiwifellows

Part of #63.

Problem

RulesEngine::storeScanDetail() (app/app/Services/RulesEngine/RulesEngine.php:595) issues one INSERT per API response. An EC2 region with 50 instances × 3 actions is ~200 individual round trips to MySQL.

Change

Buffer detail rows per task and bulk-insert them.

Priority: P2

Metadata

Metadata

Assignees

No one assigned

    Labels

    performanceScan speed, throughput, resource useroadmap:laterReal, but waiting on a triggersize/XSUnder a day

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions