MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / getUnresolvedReferencesCount

Method getUnresolvedReferencesCount

src/db/queries.ts:2318–2326  ·  view source on GitHub ↗

* Get the count of PENDING (never-attempted) references without loading * them into memory. Rows marked status='failed' — attempted by a completed * pass, no match — are excluded: they are not outstanding work, only retry * candidates for the #1240 sweep, so they must not trip the #1187 orp

()

Source from the content-addressed store, hash-verified

2316 * sweep or the `status` pending-refs warning.
2317 */
2318 getUnresolvedReferencesCount(): number {
2319 if (!this.stmts.getUnresolvedCount) {
2320 this.stmts.getUnresolvedCount = this.db.prepare(
2321 "SELECT COUNT(*) as count FROM unresolved_refs WHERE status = 'pending'"
2322 );
2323 }
2324 const row = this.stmts.getUnresolvedCount.get() as { count: number };
2325 return row.count;
2326 }
2327
2328 /**
2329 * Get a batch of PENDING unresolved references using LIMIT/OFFSET

Callers 6

indexAllMethod · 0.80
syncMethod · 0.80
db-perf.test.tsFile · 0.80

Calls 2

prepareMethod · 0.65
getMethod · 0.65

Tested by

no test coverage detected