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

Query related to year 2018 are much slower #90

Open
zaxcie opened this issue Apr 23, 2018 · 0 comments
Open

Query related to year 2018 are much slower #90

zaxcie opened this issue Apr 23, 2018 · 0 comments

Comments

@zaxcie
Copy link

zaxcie commented Apr 23, 2018

Every query related to the year 2018 are much slower than query related to other years.

Here is an example, but same pattern apply to every query I've tried.

import time
import mlbgame


start = time.time()
a = mlbgame.games(2018, months=3, home="Blue Jays", away="Blue Jays")
end = time.time()
print(end - start)

>>> 170.45325899124146

start = time.time()
a = mlbgame.games(2017, months=3, home="Blue Jays", away="Blue Jays")
end = time.time()
print(end - start)

>>> 4.973407983779907

Any idea why or suggestion?

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

No branches or pull requests

2 participants