panzarino/mlbgame

Query related to year 2018 are much slower

Open

#90 aperta il 23 apr 2018

Vedi su GitHub
 (0 commenti) (0 reazioni) (0 assegnatari)Python (116 fork)batch import
help wantedquestion

Metriche repository

Star
 (509 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?

Guida contributor