panzarino/mlbgame

Query related to year 2018 are much slower

Open

#90 opened on Apr 23, 2018

View on GitHub
 (0 comments) (0 reactions) (0 assignees)Python (509 stars) (116 forks)batch import
help wantedquestion

Description

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?

Contributor guide