computePageResults() — supabase Function Reference
Architecture documentation for the computePageResults() function in utils.ts from the supabase codebase.
Entity Profile
Dependency Diagram
graph TD 86b8c4fd_49a3_2d66_414d_91a988e26d4f["computePageResults()"] e004e86e_d6b3_597d_5a6c_1a898d503de3["processAndInsertEmbeddings()"] e004e86e_d6b3_597d_5a6c_1a898d503de3 -->|calls| 86b8c4fd_49a3_2d66_414d_91a988e26d4f style 86b8c4fd_49a3_2d66_414d_91a988e26d4f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
apps/docs/scripts/search/embeddings/utils.ts lines 78–94
export function computePageResults(
pageInfoMap: Map<number, PageInfo>,
pageSectionsInserted: Map<number, number>,
result: ProcessingResult
) {
for (const [pageId, pageInfo] of pageInfoMap) {
const insertedCount = pageSectionsInserted.get(pageId) || 0
if (insertedCount === pageInfo.sectionsCount && !result.failedPages.has(pageId)) {
result.successfulPages.add(pageId)
} else {
result.failedPages.add(pageId)
console.warn(
`Page ${pageInfo.path}: inserted ${insertedCount}/${pageInfo.sectionsCount} sections`
)
}
}
}
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does computePageResults() do?
computePageResults() is a function in the supabase codebase.
What calls computePageResults()?
computePageResults() is called by 1 function(s): processAndInsertEmbeddings.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free