Skip to content

Commit

Permalink
fix typo in graphql query docs (#938)
Browse files Browse the repository at this point in the history
  • Loading branch information
prettyirrelevant committed Jun 15, 2024
1 parent 6099b8d commit 66bcef2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/pages/docs/query/graphql.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ type Person {
Here are a few tips for speeding up slow queries.

1. **Create database indexes**: Create indexes to speed up filters, joins, and sort conditions. [Read more](/docs/schema#indexes).
2. **Enable horizontal scaling**: If the GraphQL API is struggling to keep up with reqeust volume, consider spreading the load across multiple instances. [Read more](/docs/production/horizontal-scaling).
2. **Enable horizontal scaling**: If the GraphQL API is struggling to keep up with request volume, consider spreading the load across multiple instances. [Read more](/docs/production/horizontal-scaling).
3. **Limit query depth**: Each layer of depth in a GraphQL query introduces at least one additional sequential database query. Avoid queries that are more than 2 layers deep.
3. **Use pagination**: Use cursor-based pagination to fetch records in smaller, more manageable chunks. This can help reduce the load on the database.

Expand Down

0 comments on commit 66bcef2

Please sign in to comment.