AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.
Docs Menu

compactStructuredEncryptionData (데이터베이스 명령)

compactStructuredEncryptionData

메타데이터 컬렉션에 지정된 문서를 압축하고 중복 문서를 삭제합니다.

이 명령은 다음 환경에서 호스팅되는 배포에서 사용할 수 있습니다.

  • MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud

참고

This command is supported in all MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands.

명령은 다음과 같은 구문을 가집니다:

db.runCommand(
{
compactStructuredEncryptionData: <collection>,
compactionTokens: {
encryptedFieldPath: bindata,
...
},
}
)

이 명령은 다음 필드를 사용합니다.

필드
유형
설명

compactStructuredEncryptionData

문자열

컬렉션의 이름입니다.

compactionTokens

문서

인덱스 필드를 압축 토큰에 매핑하는 문서입니다.

The mongosh provides a wrapper method db.collection.compactStructuredEncryptionData().

기본 제공 역할 readWriteAnyDatabase 및 dbOwner 는 리소스에 대한 compactStructuredEncryptionData 조치를 제공합니다.

예시는 메타데이터 컬렉션 압축 을 참조하세요.