Skip to content

perf: Batch record compilation, like release compilation #494

Description

@jpmckinney

Release compilation is batched (compile_release_batch; the emitter batches OCIDs per compiler_release message; the consumer bulk-writes).

Record compilation is still one OCID per message: compiler publishes compiler_record per OCID, and record_compiler runs compile_record + save_compiled_release (singular) for each.

Apply the same pattern if record throughput warrants:

  • Emitter: publish compiler_record per batch of OCIDs (reuse the _publish(…, ocids=…) helper).
  • record_compiler: accept an ocids list, read the batch's records in one query, compile each, and bulk-write via save_compiled_releases.
  • Preserve the per-record logic (dated/undated/linked/tagged/compiledRelease handling and notes).

Work on this if record compilation is a bottleneck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions