Skip to content

Commit

Permalink
Index to optimize retrieving distinct system links
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Nov 17, 2014
1 parent a61eb84 commit 456a866
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/TradeDangerous.sql
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ CREATE TABLE StationLink
) WITHOUT ROWID
;
CREATE INDEX idx_stn_dist ON StationLink (lhs_station_id, dist);
CREATE INDEX idx_stn_sys ON StationLink (lhs_system_id, dist);
CREATE INDEX idx_sys_dist ON StationLink (lhs_system_id, dist, rhs_system_id);

CREATE VIEW vPrice AS
SELECT si.station_id AS station_id,
Expand Down

0 comments on commit 456a866

Please sign in to comment.