-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
81 additions
and
46 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
DROP INDEX IF EXISTS idx_trips_id; | ||
|
||
DROP INDEX IF EXISTS idx_positions_trip_id; | ||
|
||
DROP INDEX IF EXISTS idx_stop_times_trip_id; | ||
|
||
DROP INDEX IF EXISTS idx_stop_times_arrival; | ||
|
||
DROP INDEX IF EXISTS idx_bus_trips_id; | ||
|
||
DROP INDEX IF EXISTS idx_bus_positions_trip_id; | ||
|
||
DROP INDEX IF EXISTS idx_bus_stop_times_trip_id; | ||
|
||
DROP INDEX IF EXISTS idx_bus_stop_times_arrival; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
-- Train stuff | ||
CREATE INDEX idx_trips_id ON trips(id); | ||
|
||
CREATE INDEX idx_positions_trip_id ON positions(trip_id); | ||
|
||
CREATE INDEX idx_stop_times_trip_id ON stop_times(trip_id); | ||
|
||
CREATE INDEX idx_stop_times_arrival ON stop_times(arrival); | ||
|
||
-- Bus stuff | ||
CREATE INDEX idx_bus_trips_id ON bus_trips(id); | ||
|
||
CREATE INDEX idx_bus_positions_trip_id ON bus_positions(vehicle_id); | ||
|
||
CREATE INDEX idx_bus_stop_times_trip_id ON bus_stop_times(trip_id); | ||
|
||
CREATE INDEX idx_bus_stop_times_arrival ON bus_stop_times(arrival); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,8 +86,6 @@ WHERE | |
Ok(Json(trips)) | ||
} | ||
|
||
// | ||
|
||
#[derive(FromRow, Serialize)] | ||
pub struct BusTripData { | ||
id: Uuid, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters