panzarino/mlbgame

Query related to year 2018 are much slower

Open

#90 建立於 2018年4月23日

在 GitHub 查看
 (0 留言) (0 反應) (0 負責人)Python (509 star) (116 fork)batch import
help wantedquestion

描述

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?

貢獻者指南