add load time and autofocus
Some checks failed
Create and publish a Docker image / build-and-push-image (push) Failing after 10m5s

This commit is contained in:
Nicholas Orlowsky 2025-10-06 21:25:15 -04:00
parent 917428507d
commit 5539c8521d
No known key found for this signature in database
GPG key ID: A9F3BA4C0AA7A70B
10 changed files with 153 additions and 11 deletions

View file

@ -26,6 +26,14 @@ impl DbObj<StopSchedule> for StopSchedule {
.execute(&mut **tx)
.await?;
sqlx::query("
CREATE INDEX septa_stop_schedule_trip_id_idx ON septa_stop_schedules (trip_id);
").execute(&mut **tx).await?;
sqlx::query("
CREATE INDEX septa_stop_schedule_service_id_idx ON septa_stop_schedules (service_id);
").execute(&mut **tx).await?;
Ok(())
}
async fn insert_many(scheds: Vec<StopSchedule>, tx: &mut Transaction<'_, Postgres>) -> anyhow::Result<()> {
@ -107,6 +115,7 @@ impl FromSeptaJson<septa_json::stop_schedule::StopSchedule> for StopSchedule {
septa_json::stop_schedule::TripId::RegionalRail(x) => x,
septa_json::stop_schedule::TripId::Other(y) => y.to_string()
},
stop_name: String::from(""),
service_id: json_sched.service_id,
// FIXME: Actually get direction
direction_id: json_sched.direction_id,