docSnapshots에는 댓글이나 변경 내용 추적을 접는(collapse) 편집 직전에 document-updater가 만든 문서 사본이 저장됩니다. document-updater만 이 컬렉션에 쓰며, services/document-updater/app/js/SnapshotManager.js에서 씁니다. Web에는 services/web/app/src/models/DocSnapshot.mjs에 Mongoose 모델이 있지만 이를 사용하는 코드는 없습니다.
필드
쓰는 곳
읽는 곳
읽는 코드가 없습니다. Web 모델은 정의되어 있지만 어디에서도 사용되지 않습니다.인덱스
20190912145007_create_docSnapshots_indexes.mjs의 project_id_1 인덱스는 20231101191643_drop_unused_indexes.mjs에서 삭제되었습니다.
참고
UpdateManager.applyUpdate를 거치는 편집만 스냅샷을 만듭니다.HistoryOTUpdateManager가 처리하는 편집은 만들지 않습니다(UpdateManager.js:74-77).doc_id에는 인덱스가 없습니다. 문서의 스냅샷은project_id와ts로 찾은 뒤doc_id로 걸러 내세요.

