Files
outline/server/models
Claude 2c354673ee perf: reduce per-item queries on hot paths and add missing indexes
- presentDocuments: batch-load collection deletedAt for archived/deleted
  documents so trash and archive listings no longer issue one Collection
  query per document via isCollectionDeleted
- documents.search: present results through the batched presentDocuments
  helper instead of one presentDocument call per result
- revisions.list: load collaborators for the whole page in a single User
  query instead of one per revision, and stop fetching the unused content
  and text columns when listing without content
- TextHelper.attachmentsToSignedUrls: fetch all attachments in one query
  instead of one findOne per attachment id
- BacklinksProcessor: resolve linked documents and existing backlinks in
  bulk queries and create missing backlinks with a single bulkCreate
- NotificationHelper: batch the per-recipient View lookup when filtering
  comment notification recipients
- Add indexes covering hot queries that previously scanned: events
  (teamId, createdAt) for the audit log, and shares (documentId) /
  (collectionId) for shareLoader lookups

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TTaaEHNxBrmBnoVa5iSJV6
2026-07-05 09:51:14 +00:00
..
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-05-06 21:10:51 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00
2026-06-29 17:11:02 -04:00