실행 중에 적응형 필터링으로 인해 인라인 필터링에서 사전 필터링으로 전환되면 쿼리 계획이 동적으로 변경됩니다.
예를 들어 옵티마이저가 쿼리의 해당 시점에서 사전 필터링이 더 효율적이라고 판단하면 계획의 실행 전략 필드에 Bitmap assisted pre-filtering가 표시될 수 있습니다. 이 동적 변경은 시스템이 쿼리 실행 중에 발견되는 실제 데이터에 적응하면서 발생합니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["이해하기 어려움","hardToUnderstand","thumb-down"],["잘못된 정보 또는 샘플 코드","incorrectInformationOrSampleCode","thumb-down"],["필요한 정보/샘플이 없음","missingTheInformationSamplesINeed","thumb-down"],["번역 문제","translationIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-09-04(UTC)"],[],[],null,["# Activate adaptive filtering in AlloyDB for PostgreSQL\n\n| **Preview**\n|\n|\n| This feature is subject to the \"Pre-GA Offerings Terms\" in the General Service Terms section\n| of the [Service Specific Terms](/terms/service-terms#1).\n|\n| You can process personal data for this feature as outlined in the\n| [Cloud Data Processing\n| Addendum](/terms/data-processing-addendum), subject to the obligations and restrictions described in the agreement under\n| which you access Google Cloud.\n|\n| Pre-GA features are available \"as is\" and might have limited support.\n|\n| For more information, see the\n| [launch stage descriptions](/products#product-launch-stages).\n\nThis page describes adaptive filtering in AlloyDB.\n| **Note:** Inline filtering is supported only when you use the ScaNN algorithm. Inline filtering is not compatible with the Inverted File (IVF), Inverted File Flat (IVFFlat), or Hierarchical Navigable Small Worlds (HNSW) algorithms.\n\nAdaptive filtering analyzes query patterns and data distributions during query execution to dynamically choose the most efficient filtering strategy such as inline or pre-filtering.\n\nThe AlloyDB query optimizer uses cost-based analysis to determine whether inline filtering or pre-filtering provides the best performance at any given point during query execution.\n\nSuch optimization is beneficial for AlloyDB's filtered vector searches, where adaptive filtering automatically switches between vector and metadata index usage to ensure efficient and accurate results without your manual intervention.\n\nEnable adaptive filtering\n-------------------------\n\nTo enable adaptive filtering, use the [`scann.enable_preview_features`](/alloydb/docs/reference/alloydb-flags#scann.enable_preview_features) flag.\n\nWhen adaptive filtering triggers a switch from inline filtering to pre-filtering during execution, the query plan dynamically changes.\n\nFor example, the plan can show `Bitmap assisted pre-filtering` in the **Execution Strategy** field when the optimizer determines that pre-filtering is more efficient at that point in the query. This dynamic change occurs as the system adapts to the actual data that it encounters during the query's execution. \n\n Limit (actual rows=10 loops=1)\n -\u003e Custom Scan (vector scan) on t1 (actual rows=10 loops=1)\n Execution Strategy: Bitmap assisted pre-filtering\n Order By: (vec_col \u003c=\u003e '[...]'::vector)\n Limit: 10\n Num Requalifications: 0\n Num filtered: 1000\n -\u003e Bitmap Index Scan on btree_idx (actual rows=10000 loops=1)\n Index Cond: (int_col \u003c= 100000000)\n\nWhat's next\n-----------\n\n- [Filtered vector search in AlloyDB](/alloydb/docs/ai/filtered-vector-search-overview)"]]