You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Split from #134. The processor DB has no indexes beyond auto-generated FK indexes from the Init migration. Adding @index directives in schema.graphql for commonly filtered/ordered fields would improve query performance with minimal effort.
Split from #134. The processor DB has no indexes beyond auto-generated FK indexes from the Init migration. Adding
@indexdirectives inschema.graphqlfor commonly filtered/ordered fields would improve query performance with minimal effort.Candidate fields
Steps
@indexdirectives toschema.graphqlyarn codegen— regeneratessrc/model/with@Index_()TypeORM decoratorsyarn buildyarn db:create-migration— generates a migration withCREATE INDEXstatementsNotes
@index(single field) and@index(fields: [...], unique: true)(composite/unique) onOBJECT | FIELD_DEFINITIONsrc/model/, typegen touchessrc/types/, no overlap