Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Findroute: initial loading and filtering efficiency #517

Open
jteresco opened this issue Jul 2, 2020 · 1 comment
Open

Findroute: initial loading and filtering efficiency #517

jteresco opened this issue Jul 2, 2020 · 1 comment
Labels
efficiency enhancement findroute The findroute.php functionality of the HB Highway Browser This label has been replaced by findroute and showroute PHP SQL

Comments

@jteresco
Copy link
Contributor

jteresco commented Jul 2, 2020

The Route Finder is obviously very slow to load, since it brings in information from all 60,000+ routes from the DB, transfers it using JSON, processes it in JS, and then the browser needs to display the results of DOM changes.

Places to look for efficiency opportunities:

  • more efficient SQL query (reduce DB access time)
  • smaller data resulting from SQL query (reduce encoding/transmission/decoding time)
  • thinking about how the table is built in JS to be more efficient on construction and when filters are applied (reduce time spent by the browser)
@jteresco
Copy link
Contributor Author

Recent configuration changes to the DB server have sped up large queries like the one findroute uses. A page load on my Mac now takes roughly 7 or 8 seconds for the DB query and another 7 or 8 seconds to apply filters initially.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
efficiency enhancement findroute The findroute.php functionality of the HB Highway Browser This label has been replaced by findroute and showroute PHP SQL
Projects
None yet
Development

No branches or pull requests

1 participant