Skip to content

Commit

Permalink
Merge pull request #80 from vingerha/master
Browse files Browse the repository at this point in the history
Add idx for stop_times to improve performance
  • Loading branch information
jarondl authored Mar 29, 2024
2 parents 9fd9b9f + bc4a684 commit 3c36d16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pygtfs/gtfs_entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -357,10 +357,10 @@ class StopTime(Base):
__tablename__ = 'stop_times'
_plural_name_ = 'stop_times'
feed_id = Column(Integer, ForeignKey('_feed.feed_id'), primary_key=True)
trip_id = Column(Unicode, primary_key=True)
trip_id = Column(Unicode, primary_key=True, index=True)
arrival_time = Column(Interval)
departure_time = Column(Interval)
stop_id = Column(Unicode, primary_key=True)
stop_id = Column(Unicode, primary_key=True, index=True)
stop_sequence = Column(Integer, primary_key=True)
stop_headsign = Column(Unicode)
pickup_type = Column(Integer)
Expand Down

0 comments on commit 3c36d16

Please sign in to comment.