#273509·kibana

[Security Solution] Optimize bulk rule import

Author: banderrorCreated Jun 16, 2026Updated Oct 1, 2026
Labelsperformancetechnical debtTeam: SecuritySolutionFeature:Rule Management9.5 candidateTeam:Detection Engineering

Epic: https://github.com/elastic/kibana/issues/264906

Summary

Optimize the _import endpoint for bulk rule import.

The endpoint should use true bulk operations under the hood. All initPromisePool and p-map usages should be replaced with true bulk calls. All bulk fetches (reads) and creation/updates (writes) should be done in true bulk. All N+1 patterns should be eliminated.

Details

Two sequential optimizations are planned at the moment (see the sub-tickets).

After both optimizations are merged, a follow-up audit of the endpoint will determine whether further improvements are required.

Main scope

Additional improvements

In addition, in order to maximize the speed of importing certain kinds of rules, we should work on these optimizations too:

Post optimization: Raise current import limits

After this work has been carried out, we should also raise bulk import upload limits past the 10MB we have at the moment.

Resources