Skip to content

Commit

Permalink
Update 12.faq.md (#1151)
Browse files Browse the repository at this point in the history
  • Loading branch information
Guayaba221 authored Dec 5, 2024
1 parent 34a12eb commit fba2a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/12.faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Don't forget `Extra.ignore` Pydantic hint, otherwise, storage deserialization wi

DipDup provides convenient helpers to process off-chain data like market quotes or IPFS metadata. Follow the tips below to use them most efficiently.

- Do not perform off-chain requests in handers until necessary. Handlers need to be as fast as possible not to block the database transaction. Use hooks instead, enriching indexed data on-demand.
- Do not perform off-chain requests in handlers until necessary. Handlers need to be as fast as possible not to block the database transaction. Use hooks instead, enriching indexed data on-demand.
- Use generic `http` datasource for external APIs instead of plain `aiohttp` requests. It makes available the same features DipDup uses for internal requests: retry with backoff, rate limiting, Prometheus integration etc.
- Database tables that store off-chain data can be marked as immune, to speed up reindexing.

Expand Down

0 comments on commit fba2a77

Please sign in to comment.