Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / function
_supports_iterative_scan
codeintel.retrieval._supports_iterative_scan
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
codeintel.retrieval._supports_iterative_scanbackend/app/codeintel/retrieval.py, lines 596–603Open source
def _supports_iterative_scan(db: Session) -> bool: """pgvector >= 0.8 (``hnsw.iterative_scan``), checked once per database URL.""" key = str(db.get_bind().url) if key not in _ITERATIVE_SCAN: version = db.execute(text("SELECT extversion FROM pg_extension WHERE extname = 'vector'")).scalar() parts = tuple(int(p) for p in re.findall(r"\d+", version or "")[:2]) _ITERATIVE_SCAN[key] = parts >= (0, 8) return _ITERATIVE_SCAN[key]What the index recorded
- Signature
def _supports_iterative_scan(db: Session) -> bool:- File
backend/app/codeintel/retrieval.py- Lines
- 596–603
- Parser
- python-ast
- Git blob
884729a39ae0b3d340ad83f75946677dcddf3791- Call sites
- 8 named, 1 resolved, 7 left unlinked
- Outside this subset
- 1 more edges reach code outside the graph shown here
