Skip to content

fix: add pagination to get_tickets endpoint for performance with large datasets #721

@tmdeveloper007

Description

@tmdeveloper007

Issue Description

The get_tickets endpoint in backend/main.py returns ALL tickets with query.execute() without any pagination parameters. For companies with thousands of tickets, this causes performance issues.

Expected Fix

Add optional limit (default 50) and offset (default 0) query parameters and apply them to the Supabase query before executing.

Files to Modify

  • backend/main.py (lines 1148-1165)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions