Skip to content

Commit

Permalink
chore(insights): add more indexes to spped up DB (QwikDev#7110)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhevery authored Dec 6, 2024
1 parent c322230 commit d264a52
Show file tree
Hide file tree
Showing 8 changed files with 5,438 additions and 3 deletions.
2 changes: 2 additions & 0 deletions packages/insights/drizzle/0017_pink_maestro.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE INDEX `idx_manifests_apiKey_hash_2` ON `manifests` (`public_api_key`,`hash`);--> statement-breakpoint
CREATE INDEX `idx_manifest_api_timestamp` ON `manifests` (`public_api_key`,`timestamp`);
2 changes: 2 additions & 0 deletions packages/insights/drizzle/0018_heavy_toad.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CREATE INDEX `idx_apiKey_hash_from` ON `edges` (`public_api_key`,`from`,`manifest_hash`);--> statement-breakpoint
CREATE INDEX `idx_hash_to` ON `edges` (`manifest_hash`,`to`);
1 change: 1 addition & 0 deletions packages/insights/drizzle/0019_known_satana.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE INDEX `idx_edge_from_to` ON `edges` (`from`,`to`);
Loading

0 comments on commit d264a52

Please sign in to comment.