From d2ae55c901ab59284263ad3070ba425e03cee833 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 9 Jun 2025 13:08:39 +0200 Subject: Stations: get_by_external_id is a slow function --- lib/Travelynx/Model/Stations.pm | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/Travelynx/Model/Stations.pm b/lib/Travelynx/Model/Stations.pm index 49ecb52..761c5de 100644 --- a/lib/Travelynx/Model/Stations.pm +++ b/lib/Travelynx/Model/Stations.pm @@ -217,7 +217,7 @@ sub add_or_update { $stop->{eva} = $s->hash->{eva}; - return $s->hash; + return; } my $loc = $stop->loc; @@ -255,6 +255,8 @@ sub add_or_update { archived => 0 } ); + + return; } sub add_meta { @@ -347,7 +349,7 @@ sub get_by_eva { )->hash; } -# Fast +# Slow sub get_by_external_id { my ( $self, %opt ) = @_; -- cgit v1.2.3