diff --git a/app/views/docs/database.phtml b/app/views/docs/database.phtml index f02280676..7f9c136e7 100644 --- a/app/views/docs/database.phtml +++ b/app/views/docs/database.phtml @@ -418,12 +418,15 @@ func main() async throws { +
When performing a query against multiple attributes, a single index with all queries attributes is required. In the example above, a single index with both title and year is queried.
+Indexes are used by databases to quickly locate data without having to search through every document for results. To ensure the best performance, Appwrite requires an index for every query. - You can create an index by navigating to the Indexes tab of your collection, or by using your favorite Server SDK. It should be noted that Appwrite's database was designed to protect your queries from performing a full-table scan as this is a footgun and could cause catastrophic performance degregation as you scale up your Appwrite project. + You can create an index by navigating to the Indexes tab of your collection or by using your favorite Server SDK. If you plan to query multiple attributes in a single query, you will need an index with all queried attributes.
+It should be noted that Appwrite's database was designed to protect your queries from performing a full-table scan as this is a footgun and could cause catastrophic performance degregation as you scale up your Appwrite project.
The following indexes are currently supported: