040f4dcdd4
Replaced the N+1 query in `list_shared_links` which fetched `FileRecord` for each link. It now uses a single query with an `outerjoin` to fetch `original_filename` alongside the `SharedLink` object. Measured a significant improvement from ~0.4547s to ~0.0579s per 1000 links. Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com>