Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix SQL typo in query-optimization.mdx (#28170)

Heloi Neto00832a7d7db9
diff --git a/apps/docs/content/guides/database/query-optimization.mdx b/apps/docs/content/guides/database/query-optimization.mdx
index bf3c2f169b3..02a2bd64307 100644
--- a/apps/docs/content/guides/database/query-optimization.mdx
+++ b/apps/docs/content/guides/database/query-optimization.mdx
@@ -25,15 +25,11 @@ select
a.name,
b.date_of_purchase
from
- customers a
- join orders b
- on a.id = b.customer_id
-where
- a.sign_up_date > '2023-01-01'
- and b.status = 'shipped'
-order by
- b.date_of_purchase;
-limit 10
+ customers as a
+ join orders as b on a.id = b.customer_id
+where a.sign_up_date > '2023-01-01' and b.status = 'shipped'
+order by b.date_of_purchase
+limit 10;
```
In this query, there are several parts that indexes could likely help in optimizing the performance: