mirror of
https://github.com/supabase/supabase.git
synced 2026-05-23 10:21:37 +08:00
* Remove showS3Connection flag. * Remove showAnonUserFilter flag. * Remove enableVercelConnectionsConfig flag. * Remove indexAdvisor flag. * Remove queryPerformanceV2 flag. * Remove unused files. * Remove unneeded packages. * Remove the v2 suffix from the query performance folder.
36 lines
2.1 KiB
TypeScript
36 lines
2.1 KiB
TypeScript
export enum QUERY_PERFORMANCE_REPORT_TYPES {
|
|
MOST_TIME_CONSUMING = 'most_time_consuming',
|
|
MOST_FREQUENT = 'most_frequent',
|
|
SLOWEST_EXECUTION = 'slowest_execution',
|
|
}
|
|
|
|
export const QUERY_PERFORMANCE_REPORTS = {
|
|
[QUERY_PERFORMANCE_REPORT_TYPES.MOST_TIME_CONSUMING]: [
|
|
{ id: 'query', name: 'Query', description: undefined, minWidth: 600 },
|
|
{ id: 'rolname', name: 'Role', description: undefined, minWidth: undefined },
|
|
{ id: 'calls', name: 'Calls', description: undefined, minWidth: undefined },
|
|
{ id: 'total_time', name: 'Total time', description: 'latency', minWidth: 180 },
|
|
{ id: 'prop_total_time', name: 'Time consumed', description: undefined, minWidth: 150 },
|
|
],
|
|
[QUERY_PERFORMANCE_REPORT_TYPES.MOST_FREQUENT]: [
|
|
{ id: 'query', name: 'Query', description: undefined, minWidth: 600 },
|
|
{ id: 'rolname', name: 'Role', description: undefined, minWidth: undefined },
|
|
{ id: 'avg_rows', name: 'Avg. Rows', description: undefined, minWidth: undefined },
|
|
{ id: 'calls', name: 'Calls', description: undefined, minWidth: undefined },
|
|
{ id: 'max_time', name: 'Max time', description: undefined, minWidth: undefined },
|
|
{ id: 'mean_time', name: 'Mean time', description: undefined, minWidth: undefined },
|
|
{ id: 'min_time', name: 'Min time', description: undefined, minWidth: undefined },
|
|
{ id: 'total_time', name: 'Total time', description: 'latency', minWidth: 180 },
|
|
],
|
|
[QUERY_PERFORMANCE_REPORT_TYPES.SLOWEST_EXECUTION]: [
|
|
{ id: 'query', name: 'Query', description: undefined, minWidth: 600 },
|
|
{ id: 'rolname', name: 'Role', description: undefined, minWidth: undefined },
|
|
{ id: 'avg_rows', name: 'Avg. Rows', description: undefined, minWidth: undefined },
|
|
{ id: 'calls', name: 'Calls', description: undefined, minWidth: undefined },
|
|
{ id: 'max_time', name: 'Max time', description: undefined, minWidth: undefined },
|
|
{ id: 'mean_time', name: 'Mean time', description: undefined, minWidth: undefined },
|
|
{ id: 'min_time', name: 'Min time', description: undefined, minWidth: undefined },
|
|
{ id: 'total_time', name: 'Total time', description: 'latency', minWidth: 180 },
|
|
],
|
|
} as const
|