Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusrein committed Nov 27, 2024
1 parent f139d7c commit f09ab7a
Show file tree
Hide file tree
Showing 6 changed files with 42 additions and 42 deletions.
14 changes: 7 additions & 7 deletions website/pages/en/cookbook/avoid-eth-calls.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -101,16 +101,16 @@ Note: Declared eth_calls can only be made in subgraphs with specVersion >= 1.2.0

We can significantly improve indexing performance by minimizing or eliminating `eth_calls` in our subgraphs.

## Subgraph Best Practices
## Subgraph Best Practices 1-6

### 1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)
1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)

### 2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)
2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)

### 3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)
3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)

### 4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)
4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)

### 5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)
5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)

### 6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
14 changes: 7 additions & 7 deletions website/pages/en/cookbook/derivedfrom.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,16 @@ Adopting the `@derivedFrom` directive in subgraphs effectively handles dynamical

To learn more detailed strategies to avoid large arrays, read this blog from Kevin Jones: [Best Practices in Subgraph Development: Avoiding Large Arrays](https://thegraph.com/blog/improve-subgraph-performance-avoiding-large-arrays/).

## Subgraph Best Practices
## Subgraph Best Practices 1-6

### 1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)
1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)

### 2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)
2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)

### 3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)
3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)

### 4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)
4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)

### 5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)
5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)

### 6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
14 changes: 7 additions & 7 deletions website/pages/en/cookbook/grafting-hotfix.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -169,16 +169,16 @@ However, it’s important to use grafting judiciously and follow best practices

By incorporating grafting into your subgraph development workflow, you can enhance your ability to respond to issues swiftly, ensuring that your data services remain robust and reliable.

## Subgraph Best Practices
## Subgraph Best Practices 1-6

### 1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)
1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)

### 2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)
2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)

### 3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)
3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)

### 4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)
4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)

### 5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)
5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)

### 6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
14 changes: 7 additions & 7 deletions website/pages/en/cookbook/immutable-entities-bytes-as-ids.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -175,16 +175,16 @@ Using both Immutable Entities and Bytes as IDs has been shown to markedly improv

Read more about using Immutable Entities and Bytes as IDs in this blog post by David Lutterkort, a Software Engineer at Edge & Node: [Two Simple Subgraph Performance Improvements](https://thegraph.com/blog/two-simple-subgraph-performance-improvements/).

## Subgraph Best Practices
## Subgraph Best Practices 1-6

### 1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)
1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)

### 2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)
2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)

### 3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)
3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)

### 4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)
4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)

### 5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)
5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)

### 6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
14 changes: 7 additions & 7 deletions website/pages/en/cookbook/pruning.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,16 @@ dataSources:

Pruning using `indexerHints` is a best practice for subgraph development, offering significant query performance improvements.

## Subgraph Best Practices
## Subgraph Best Practices 1-6

### 1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)
1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)

### 2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)
2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)

### 3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)
3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)

### 4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)
4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)

### 5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)
5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)

### 6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
14 changes: 7 additions & 7 deletions website/pages/en/cookbook/timeseries.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -164,16 +164,16 @@ Implementing timeseries and aggregations in subgraphs is a best practice for pro

By adopting this pattern, developers can build more efficient and scalable subgraphs, providing faster and more reliable data access to end-users. To learn more about implementing timeseries and aggregations, refer to the [Timeseries and Aggregations Readme](https://github.com/graphprotocol/graph-node/blob/master/docs/aggregations.md) and consider experimenting with this feature in your subgraphs.

## Subgraph Best Practices
## Subgraph Best Practices 1-6

### 1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)
1. [Improve Query Speed with Subgraph Pruning](https://thegraph.com/docs/en/cookbook/pruning/)

### 2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)
2. [Improve Indexing and Query Responsiveness by Using @derivedFrom](https://thegraph.com/docs/en/cookbook/derivedfrom/)

### 3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)
3. [Improve Indexing and Query Performance by Using Immutable Entities and Bytes as IDs](https://thegraph.com/docs/en/cookbook/immutable-entities-bytes-as-ids/)

### 4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)
4. [Improve Indexing Speed by Avoiding `eth_calls`](https://thegraph.com/docs/en/cookbook/avoid-eth-calls/)

### 5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)
5. [Simplify and Optimize with Timeseries and Aggregations](https://thegraph.com/docs/en/cookbook/timeseries/)

### 6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)
6. [Use Grafting for Quick Hotfix Deployment](https://thegraph.com/docs/en/cookbook/grafting-hotfix/)

0 comments on commit f09ab7a

Please sign in to comment.