The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
chore: add storage cache miss template to logs explorer
TzeYiinga96fe6049a5b
diff --git a/studio/components/interfaces/Settings/Logs/Logs.constants.ts b/studio/components/interfaces/Settings/Logs/Logs.constants.tsindex b8f6022938c..0f6c119ba1b 100644--- a/studio/components/interfaces/Settings/Logs/Logs.constants.ts+++ b/studio/components/interfaces/Settings/Logs/Logs.constants.ts@@ -220,6 +220,28 @@ limit 100order bynum_requests desclimit 100+`,+ for: ['api'],+ },+ {+ label: 'Storage Top Cache Misses',+ description: 'The top Storage requests that miss caching',+ mode: 'custom',+ searchString: `select+ r.path as path,+ r.search as search,+ count(id) as count+ from edge_logs f+ cross join unnest(f.metadata) as m+ cross join unnest(m.request) as r+ cross join unnest(m.response) as res+ cross join unnest(res.headers) as h+ where starts_with(r.path, '/storage/v1/object')+ and r.method = 'GET'+ and h.cf_cache_status in ('MISS', 'NONE/UNKNOWN', 'EXPIRED', 'BYPASS', 'DYNAMIC')+ group by path, search+ order by count desc+ limit 100`,for: ['api'],},