Increase the number of concurrent API queries
Browse files
dashboard_utils/bubbles.py
CHANGED
|
@@ -36,7 +36,7 @@ def get_new_bubble_data():
|
|
| 36 |
@simple_time_tracker(_log)
|
| 37 |
def get_profiles(usernames):
|
| 38 |
profiles = []
|
| 39 |
-
with FuturesSession() as session:
|
| 40 |
futures = []
|
| 41 |
for username in usernames:
|
| 42 |
future = session.get(URL_QUICKSEARCH + parse.urlencode({"type": "user", "q": username}))
|
|
|
|
| 36 |
@simple_time_tracker(_log)
|
| 37 |
def get_profiles(usernames):
|
| 38 |
profiles = []
|
| 39 |
+
with FuturesSession(max_workers=32) as session:
|
| 40 |
futures = []
|
| 41 |
for username in usernames:
|
| 42 |
future = session.get(URL_QUICKSEARCH + parse.urlencode({"type": "user", "q": username}))
|