끄적끄적 보니타

  • 홈

Exceeded_memory 1

[Node.js-Mongo] MongoError: Exceeded memory limit for $, but didn't allow external sort. Pass allowDiskUse:true to opt in. 해결

- 주로 aggregate 쿼리에서 발생 - 처리할 데이터가 많아서, 메모리를 초과해버림 - disk를 사용하겠다는 "{ allowDiskUse: true }"을 추가해주면 해결 db.collection(collectionName) .aggregate(queryCondition, { allowDiskUse: true }) .toArray(function(err, result) { // 아무거나 });

Programming/JavaScript & TypeScript 2020.09.11
이전
1
다음
더보기
프로필사진

끄적끄적 보니타

더 나은 개발자가 되기 위해... ※ 잘못된 정보가 있거나 추가적인 정보가 필요하다면 피드백 부탁드립니다~

  • 분류 전체보기 (322)
    • Programming (98)
      • Python (2)
      • Java (0)
      • JavaScript & TypeScr.. (69)
      • Shell (2)
      • Unity (1)
    • Web (17)
    • Linux (8)
    • Algorithm (141)
      • Baekjoon (67)
      • Do it (30)
      • codewars (28)
      • Programmers (2)
      • SWEA (10)
      • algospot (0)
    • AI (4)
    • Database (7)
    • Security (8)
    • 기타 (26)
    • 교육 (10)
      • 자격증 (1)
      • 컨퍼런스 & 워크샵 (8)
      • 도큐먼트 & 관련 서적 (1)
    • Project (0)
    • 일상 (1)
    • 영어 (1)

Tag

알고리즘, DOIT, Over_The_Wire, Linux, OverTheWire:Natas, C, baekjoon, Angular, python3, python2, Python, angular5, 자료구조, BOJ, 답안, Command, 백준, wargames, overthewire, C언어,

최근글과 인기글

  • 최근글
  • 인기글

최근댓글

공지사항

페이스북 트위터 플러그인

  • Facebook
  • Twitter

Archives

Calendar

«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30

방문자수Total

  • Today :
  • Yesterday :

Copyright © Kakao Corp. All rights reserved.

  • github 주소
  • 01210210
  • 예프

티스토리툴바