Enable ClickHouse storage with per-entity @storage directives#11
Conversation
Turn on `storage.clickhouse: true` and annotate each entity: - Postgres + ClickHouse (handler reads, derivedFrom targets, GraphQL lookups): Market, OrderFill, OrderMatch, ExchangeStats, PolyUSDStats, PolyUSDAccount, SponsoredMarket - ClickHouse only (write-only in handlers, no derivedFrom backrefs): FeeEvent, PolyUSDTransfer, PolyUSDWrap, RewardDistribution, Sponsorship OrderFill and OrderMatch are write-only in handlers but kept in postgres because Market.fills and Market.matches @derivedFrom would otherwise stop resolving via the GraphQL API. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughConfiguration and schema changes enable ClickHouse as a storage backend and route indexed data through it. ChangesClickHouse Storage Integration
🎯 2 (Simple) | ⏱️ ~10 minutes Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Comment |
Turn on
storage.clickhouse: trueand annotate each entity:OrderFill and OrderMatch are write-only in handlers but kept in postgres because Market.fills and Market.matches @derivedFrom would otherwise stop resolving via the GraphQL API.
Summary by CodeRabbit