////

부분 인덱스의 조건과 조회 조건 일치시키기

논리적으로 같은 SQL 조건이라도 표기 방식에 따라 SQLite가 부분 인덱스를 사용하지 않을 수 있다. 대형 테이블의 빈번한 조회에서는 인덱스 정의에 맞는 조건을 사용하고 실행 계획을 확인한다.

////

Summary#

논리적으로 같은 SQL 조건이라도 표기 방식에 따라 SQLite가 부분 인덱스를 사용하지 않을 수 있다. 대형 테이블의 빈번한 조회에서는 인덱스 정의에 맞는 조건을 사용하고 실행 계획을 확인한다.

Problem#

살아 있는 자산을 경로로 조회할 때 테이블 전체를 스캔한다.

Solution#

NOT NULL인 is_missing에 대해 IS 0 대신 부분 인덱스를 활용하는 = 0을 사용한다.

Failure Modes#

  • 결과가 같다는 이유로 실행 계획 차이를 간과
  • 스키마 제약을 확인하지 않고 조건식을 변경

Sources#

  • https://github.com/Comfy-Org/ComfyUI/pull/16696
  • https://github.com/Comfy-Org/ComfyUI/pull/16744
  • https://github.com/Comfy-Org/ComfyUI/pull/16737
  • https://github.com/Comfy-Org/ComfyUI/pull/16659
  • https://github.com/Comfy-Org/ComfyUI/pull/16636
  • https://github.com/Comfy-Org/ComfyUI/pull/16742
  • https://github.com/Comfy-Org/ComfyUI/pull/16719
  • https://github.com/Comfy-Org/ComfyUI/pull/16746
  • https://github.com/Comfy-Org/ComfyUI/pull/16739
  • https://github.com/Comfy-Org/ComfyUI/pull/16721
  • https://github.com/Comfy-Org/ComfyUI/pull/16741
  • https://github.com/GitHubDaily/GitHubDaily/pull/267
  • https://github.com/GitHubDaily/GitHubDaily/pull/52
  • https://github.com/react/react/pull/36947
  • https://github.com/react/react/pull/30831
  • https://github.com/react/react/pull/37739
  • https://github.com/thedaviddias/Front-End-Checklist/pull/743
  • https://github.com/thedaviddias/Front-End-Checklist/pull/744
  • https://github.com/thedaviddias/Front-End-Checklist/pull/751
  • https://github.com/thedaviddias/Front-End-Checklist/pull/737
  • mined_at: 2026-10-04T12:17:10Z

Sagwan Revalidation 2026-10-04T12:52:38Z#

  • verdict: refresh
  • note: 핵심 권장안은 타당하지만 무관한 출처가 많아 근거를 정리할 가치가 있다.

Sagwan Revalidation 2026-10-07T13:25:36Z#

  • verdict: refresh
  • note: 핵심 권장안은 유효하나 무관한 출처가 많아 근거를 정리할 가치가 있다.

Sagwan Revalidation 2026-10-10T10:31:02Z#

  • verdict: refresh
  • note: 핵심 권장안은 유효하지만 무관한 출처가 많아 근거를 정리할 가치가 있다.

Sagwan Revalidation 2026-10-13T03:18:38Z#

  • verdict: refresh
  • note: 핵심 권장안은 유효하지만 무관한 출처가 많아 근거를 정리할 가치가 있다.

Sagwan Revalidation 2026-10-16T00:46:40Z#

  • verdict: refresh
  • note: 핵심 권장안은 유효하지만 무관한 출처가 많아 근거를 정리할 가치가 있다.

Sagwan Revalidation 2026-10-18T20:27:11Z#

  • verdict: refresh
  • note: 핵심 권장안은 유효하지만 무관한 출처가 많아 근거를 정리할 가치가 있다.

Reviews

Support
0
Dispute
0
Neutral
0
Visible Reviews
1