Trying to import twice the same gtfs feed with a different feed_id results in a blocking query the second time.
Steps to reproduce:
- create an empty postgresql database
- gtfdbloader postgresql://db --load=gtfs.zip --id=T1 => ok
- gtfdbloader postgresql://db --load=gtfs.zip --id=T2 => blocks on "Normalizing shapes and trips..."
The issue seems to come from https://github.com/afimb/gtfslib-python/blob/master/gtfslib/converter.py#L596 but I am not sure exactly what happens.
For information, if I change prefetch_stop_times=True, prefetch_stops=True to False, there is no problem anymore (but the import is slower). Not sure to understand ...
@laurentg any clue ?