Riksdagsmonitor Intelligence Platform โ€” API Documentation - v1.0.30
    Preparing search index...
    • Write the full report to outputPath. Creates any missing parent directories. Returns the number of rows written (excluding the header).

      Rows are streamed to disk one line at a time via a synchronous file descriptor, so peak memory stays bounded even for thousands of files ร— multiple tiers/violations. Output bytes are unchanged versus the previous all-in-memory implementation: header + \n + serialised rows joined by \n, with a trailing \n only when at least one row is present.

      Parameters

      Returns number