How can I make my GTFS queries run faster?
问题 I'm trying to play with a GTFS database, namely the one provided by the RATP for Paris and its suburbs. The set of data is huge . The stop_times table has 14 million rows. Here's the tables schemas: https://github.com/mauryquijada/gtfs-mysql/blob/master/gtfs-sql.sql I'm trying to get the most efficient way to get the available routes at a specific location. As far as I understand the GTFS spec, here are the tables and their links from my data (lat/lon) to the routes: stops | stop_times |