HumanSignal / HumanSignal/label-studio-sdk
Listing tasks takes too much time
- Dominant language
- Python
- Stars
- 192
- Forks
- 127
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 1
Description
Hello, I tried to list the tasks and select their IDs only, but it takes too much time (more than 30 minutes), and i am wondering how can i find a speedup?
This is a code
```
client = LabelStudio(base_url=LABEL_STUDIO_BASE_URL, api_key=api_key)
resp = client.tasks.list(
project=project_id,
page_size=10000,
include="id",
fields="task_only",
resolve_uri=False,
)
all_tasks = []
for x in tqdm(resp):
all_tasks.append(x.id)
print(len(all_tasks))
```
It is surpsing that only fetching Ids takes this much time? we have 50k records (images) on a server and it's really wierd, because ids only should be like <1MB?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.