Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / method
_delete_resources
codeintel.indexer.CodeIndexer._delete_resources
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
| Symbol | File | Resolved by |
|---|---|---|
| _index_batch | indexer.py | same file |
| _sync | indexer.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| CodeIndexer | indexer.py | same file |
codeintel.indexer.CodeIndexer._delete_resourcesbackend/app/codeintel/indexer.py, lines 305–312Open source
def _delete_resources(self, resource_ids: list) -> None: for i in range(0, len(resource_ids), 500): ids = resource_ids[i : i + 500] chunk_ids = select(DocumentChunk.id).where(DocumentChunk.resource_id.in_(ids)) self.db.execute(delete(CodeEdge).where(CodeEdge.source_chunk_id.in_(chunk_ids))) self.db.execute(delete(CodeEdge).where(CodeEdge.target_chunk_id.in_(chunk_ids))) self.db.execute(delete(DocumentChunk).where(DocumentChunk.resource_id.in_(ids))) self.db.execute(delete(Resource).where(Resource.id.in_(ids)))What the index recorded
- Signature
def _delete_resources(self, resource_ids: list) -> None:- File
backend/app/codeintel/indexer.py- Lines
- 305–312
- Parser
- python-ast
- Git blob
e8fdfa7b5545e821f7649d68cfadd2aae85b89d0- Call sites
- 7 named, 2 resolved, 5 left unlinked
- Outside this subset
- 2 more edges reach code outside the graph shown here
