Skip to content

Commit

Permalink
Add index on mktOrders for market speedup (#289)
Browse files Browse the repository at this point in the history
Adds an index on solarSystemID to the mktOrders table, to speed up selects on markets, both regional and system-wide.
  • Loading branch information
kenneaal authored Jun 27, 2024
1 parent f97c462 commit 7ffbc4f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sql/migrations/202406242143-mktOrderIndex
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-- Adds an index to mktOrders that drastically speeds up market fetching.
-- +migrate Up
CREATE INDEX solarSystem on mktOrders(solarSystemID);
-- +migrate Down
DROP INDEX solarSystem on mktOrders;

1 comment on commit 7ffbc4f

@V-Cyberpunk
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.sql file ending is missing but important for evedbtool for migration process to detect the file.

Please sign in to comment.