Covering Indexes for Postgres
Adds include to the entity-level @index directive:
type Trade @index(fields: ["poolId", ["date", "DESC"]], include: ["volume"]) {
id: ID!
poolId: String!
date: BigInt!
volume: BigDecimal!
}
builds
CREATE INDEX "Trade_poolId_date_desc_..." ON "public"."Trade"("poolId", "date" DESC) INCLUDE ("volume");
The included columns are stored in the index but not searched or sorted by, so a query that reads only key and included columns is an index-only scan.
#1854
Other Fixes & Improvements
- Better retries on RPC rate-limited responses #1861
- Fix edge case of skipping events when a contract is dynamically registered in different blocks #1856
- Fix query cache for HyperSync source #1847
- Architecture improvements and reduced addresses RAM 3.6x (5M addresses 835->230 MB) #1850
- Internal test framework improvements #1844, #1849, #1848, #1853