Home / Function/ hasIndexRecommendations() — supabase Function Reference

hasIndexRecommendations() — supabase Function Reference

Architecture documentation for the hasIndexRecommendations() function in index-advisor.utils.ts from the supabase codebase.

Entity Profile

Dependency Diagram

graph TD
  1b092ab4_45bd_8857_3655_800279f7c4f9["hasIndexRecommendations()"]
  d55bb5d2_0fea_f272_6d89_ad97d7b149c7["QueryIndexes()"]
  d55bb5d2_0fea_f272_6d89_ad97d7b149c7 -->|calls| 1b092ab4_45bd_8857_3655_800279f7c4f9
  8824adb1_743f_95b6_9f48_ece3e426ebcf["QueryPerformanceGrid()"]
  8824adb1_743f_95b6_9f48_ece3e426ebcf -->|calls| 1b092ab4_45bd_8857_3655_800279f7c4f9
  style 1b092ab4_45bd_8857_3655_800279f7c4f9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/studio/components/interfaces/QueryPerformance/IndexAdvisor/index-advisor.utils.ts lines 100–105

export function hasIndexRecommendations(
  result: GetIndexAdvisorResultResponse | undefined | null,
  isSuccess: boolean
): boolean {
  return Boolean(isSuccess && result?.index_statements && result.index_statements.length > 0)
}

Subdomains

Frequently Asked Questions

What does hasIndexRecommendations() do?
hasIndexRecommendations() is a function in the supabase codebase.
What calls hasIndexRecommendations()?
hasIndexRecommendations() is called by 2 function(s): QueryIndexes, QueryPerformanceGrid.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free