본문 바로가기
  • 소소한 개발자 이야기

Software37

실무에서 UPDATE 쿼리를 사용할 때 주의할 점 안녕하세요. 오늘은 우리 회사에서 겪었던 이슈? 에 대하여 포스팅을 할까 합니다. 우리 회사에서는 mariaDB를 사용하고 있고 특정 시간대에 Write DB의 성능 지연으로 인해 RestAPI에서 INSERT를 수행할 시에 20초 이상 지연되는 것을 스카우터를 통해 확인 했습니다. 매일 똑같은 시간대에 현상이 발생하는 걸 토대로 그 시간에 수행되는 배치 의심하기 시작했습니다. 조사 후 우리는 일괄 UPDATE 가 범인임을 알아냈습니다. 그렇다면 왜 일괄 UPDATE가 문제가 된다는 걸까요? 사실 일괄 업데이트라는 용어가 정확히 있는지도 잘 모르겠습니다. 여기서 말하는 일괄 업데이트는 하나의 업데이트 쿼리로 많은 양의 레코드를 UPDATE(수정) 할 수 있는 것을 말합니다. 당연히 단일 쿼리로 여러 레코.. 2023. 5. 7.
03_Mac OS에서 자바 JDK 설치하기 1. Java 설치하기 Oracle 홈페이지에 들어가 자바 JDK 파일을 설치한다. 꼭 11버전이 아니어도 상관없다. 나는 14버전을 다운 받았다. https://www.oracle.com/kr/java/technologies/downloads/#java11 Download the Latest Java LTS Free Subscribe to Java SE and get the most comprehensive Java support available, with 24/7 global access to the experts. www.oracle.com macOs 탭에서 x64 DMG Installer 를 설치해준다. (jdk-11.0.17_macos-x64_bin.dmg) 2. 설치 확인하기 2023. 1. 13.
[인텔리제이] JUnit Test 실패 No tests found for given includes Intellij 에서 Junit 테스트를 하는 중 갑자기 Error가 발생했다. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':eatgo-common:test'. > No tests found for given includes: (filter.includeTestsMatching) * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help .. 2023. 1. 13.
[인텔리제이] JUnit Test 실패 No tests found for given includes Intellij 에서 Junit 테스트를 하는 중 갑자기 Error가 발생했다. FAILURE: Build failed with an exception. * What went wrong: Execution failed for task ':eatgo-common:test'. > No tests found for given includes: (filter.includeTestsMatching) * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help .. 2022. 12. 19.
[node.js] 맥북(M2) Node 설치하기 1. 사이트에서 설치하기 먼저, 링크로 접속하여 node.js를 설치합니다. https://nodejs.org/ko/ Node.js Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine. nodejs.org 2. LTS를 설치한다. 3. 다운로드 된 pkg를 실행시켜 Node.js 설치를 실행합니다. - 계속 > 동의 > 계속 ..... 4. 설치된 node.js 버전을 확인합니다. minsiwan@minsiwan-ui-MacBookPro ~ % node --version v18.12.1 5. npm을 설치를 확인합니다. npm은 Node.js 패키지 매니지로다양한 라이브러리와 프레임워크를 설치하고 관리할수 있습니다. 터미널에서.. 2022. 12. 10.
[node.js] npm run serve 오류 vue-cli-service: command not found 오픈 소스를 Clone 받아 프로젝트 npm을 구동 하려고 했는데 아래와 같은 상황을 만날 경우가 있다. 문제 minsiwan-ui-MacBookPro:slots minsiwan$ npm run serve > slots@0.1.0 serve > vue-cli-service serve sh: vue-cli-service: command not found npm run serve 를 구동 했으나, package.json은 설치되어 있음에도 command not found 라고 나온다. 원인 원격 저장소에 있는 오픈소스 프로젝트를 로컬에 Clone 받을 시 초기 설정이 필요하나 그 작업이 이루어 지지 않았기 때문이다. 해결방법 npm ci npm run serve minsiwan-ui-MacBookPro:sl.. 2022. 12. 7.