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

abortRewriteCollection (데이터베이스 명령)

abortRewriteCollection

진행 중인 rewriteCollection 작업을 중지합니다.

버전 8.3에 추가 되었습니다.

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

  • 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.adminCommand( {
abortRewriteCollection: "<database>.<collection>"
} )

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

필드
유형
필요성
설명

abortRewriteCollection

문자열

필수 사항

다시 쓰기를 중지할 데이터베이스 및 컬렉션 지정합니다.

abortRewriteCollection 명령에는 재작성을 중지하려는 클러스터 또는 데이터베이스 및 컬렉션에 대한 rewriteCollection 권한 조치 필요합니다.

이 권한 조치 다음 역할을 가진 사용자도 사용할 수 있습니다.

컬렉션 다시 쓰기의 다음 예시 살펴보겠습니다.

db.adminCommand( {
rewriteCollection: "sales.orders"
} )

이 다시 쓰기를 중지하려면 데이터베이스 및 컬렉션 이름을 abortRewriteCollection 명령에 전달합니다.

db.adminCommand( {
abortRewriteCollection: "sales.orders"
} )