Skip to content

Query hangs after reaching specific entry #115

@ptourlas

Description

@ptourlas

Greetings!

I tried the following query:

from chembl_webresource_client.new_client import new_client
activity = new_client.activity
res = activity.filter(type__iexact='pka')
print(len(res))

which returns 12004. Trying to write the query result to a file like this:

from chembl_webresource_client.new_client import new_client

activity = new_client.activity
res = activity.filter(type__iexact='pka')

with open('chembl_query.txt', 'a') as f:
     for i in range (len(res)):
             f.write(str(res[i]))

but the process hangs after the 6980th entry returning a 500 error.
Do I have to split the query in chunks somehow?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions