Skip to content

Query Performance Improvement Member Information Retrieval

정회성 edited this page Oct 29, 2024 · 1 revision

Data Specifications

  • Members: 10 records
  • Categories: 100 records (10 records per member)
  • Tags: 2000 records (200 records per member)
  • Templates: 100,000 records (10,000 records per member)
  • Source Code: 100,000 to 500,000 records (1 to 5 randomly generated per template)

Computer Specifications

  • Operating System: Windows 11
  • Processor: AMD Ryzen 9 4900HS with Radeon Graphics, 3.00 GHz
  • Installed RAM: 16.0 GB
  • System Type: 64-bit operating system, x64-based processor

Test Conditions

  • Executed with 10 threads, 100 times each
  • Total of 1000 requests executed
  • Maximum test wait time: 60 seconds

Before Improvement

Speed Measurement

  • Total request count: 1000
  • Total elapsed time: 12656 ms
  • Average elapsed time: 12 ms

Query Analysis

Total of 1 query executed

1. Lookup by Member ID (based on name)

  • Repository: MemberJpaRepository
  • Method: existsByName
select
    m1_0.id 
from
    member m1_0 
where
    m1_0.name=? 
limit
     ?
  • Number of Calls: 1

Required Tasks for Improvement

  • No improvements necessary
  • This is due to the execution of a query that is already indexed by default.

⚡️ 코드zap

프로젝트

규칙 및 정책

공통

백엔드

프론트엔드

매뉴얼

백엔드

기술 문서

백엔드

프론트엔드

회의록


Clone this wiki locally