Skip to content

Add row limit to export endpoint #43

Description

@0xNyk

The export endpoint at api/export/route.ts runs SELECT * FROM audit_log with no LIMIT. For long-running instances this can return millions of rows, exhausting memory. Add a configurable max-rows limit (e.g. 50,000) with pagination or CSV streaming.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingperformancePerformance improvement

    Type

    No type
    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