The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Remove 2dp for ms values in query performance advisor (#33472)
Joshen Limce6a432504ad
diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsxindex ed45378c08c..585b5b9d3b0 100644--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformance.tsx@@ -141,7 +141,7 @@ export const QueryPerformance = ({tab.id !== QUERY_PERFORMANCE_REPORT_TYPES.MOST_FREQUENT? tabMax > 1000? (tabMax / 1000).toFixed(2)- : tabMax.toLocaleString()+ : tabMax.toFixed(0): tabMax.toLocaleString()return (@@ -180,7 +180,6 @@ export const QueryPerformance = ({</span>) : (<span className="text-xs text-foreground-muted group-hover:text-foreground-lighter group-data-[state=active]:text-foreground-lighter transition">- {/* {Number(tab.max).toLocaleString()} */}{maxValue}{tab.id !== QUERY_PERFORMANCE_REPORT_TYPES.MOST_FREQUENT? tabMax > 1000diff --git a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsxindex 06d0bd6eefe..e38b84243c2 100644--- a/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx+++ b/apps/studio/components/interfaces/QueryPerformance/QueryPerformanceGrid.tsx@@ -71,9 +71,7 @@ export const QueryPerformanceGrid = ({ queryPerformanceQuery }: QueryPerformancerenderCell: (props) => {const value = props.row?.[col.id]const isTime = col.name.includes('time')- const formattedValue = isTime- ? `${Number(value.toFixed(2)).toLocaleString()}ms`- : value.toLocaleString()+ const formattedValue = isTime ? `${value.toFixed(0)}ms` : value.toLocaleString()return (<divclassName={cn(