Skip to content
This repository was archived by the owner on Dec 8, 2022. It is now read-only.
This repository was archived by the owner on Dec 8, 2022. It is now read-only.

Blocking query with postgresql #67

Description

@mhugo

Trying to import twice the same gtfs feed with a different feed_id results in a blocking query the second time.

Steps to reproduce:

  1. create an empty postgresql database
  2. gtfdbloader postgresql://db --load=gtfs.zip --id=T1 => ok
  3. 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 ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions