Skip to content

Commit 2e8ad85

Browse files
authored
refresh latest_benchmarks mat view after CI ingest (#56)
1 parent 44c214c commit 2e8ad85

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

packages/db/src/ingest-ci-run.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,6 +499,11 @@ async function main(): Promise<void> {
499499
[...unmappedHws].slice(0, 20).forEach((v) => console.log(` ${v}`));
500500
}
501501

502+
process.stdout.write('\n Refreshing latest_benchmarks materialized view...');
503+
const mvStart = Date.now();
504+
await sql`REFRESH MATERIALIZED VIEW CONCURRENTLY latest_benchmarks`;
505+
console.log(` ${Math.round((Date.now() - mvStart) / 1000)}s`);
506+
502507
console.log('\n=== ingest-ci-run complete ===');
503508
}
504509

0 commit comments

Comments
 (0)