diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-09 13:08:39 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-09 13:08:39 +0200 |
commit | d2ae55c901ab59284263ad3070ba425e03cee833 (patch) | |
tree | 2f85d90f258eb8d70ce9cc7d6468d224b4a0ec18 | |
parent | 725174413300e71c350d2f1dcfbeacd751def977 (diff) |
Stations: get_by_external_id is a slow function
-rw-r--r-- | lib/Travelynx/Model/Stations.pm | 6 |
1 files 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 ) = @_; |