too many corpora for graphql
I imported 99 corpora: the frontend is working just fine. However, I cannot list the corpora from the graphql API with:
query {
corpora {
totalCount,
edges {
node {
clonedFrom
}
}
}
}
It then fails with the log:
olki_1 | 07:08:46 web.1 | [2020-07-02 07:08:46,981] [ ERROR] --- An error occurred while resolving field Corpus.clonedFrom (graphql.execution.executor:452)
olki_1 | 07:08:46 web.1 | Traceback (most recent call last):
olki_1 | 07:08:46 web.1 | File "/app/.venv/lib/python3.8/site-packages/graphql/execution/executor.py", line 450, in resolve_or_error
olki_1 | 07:08:46 web.1 | return executor.execute(resolve_fn, source, info, **args)
olki_1 | 07:08:46 web.1 | File "/app/.venv/lib/python3.8/site-packages/graphql/execution/executors/sync.py", line 16, in execute
olki_1 | 07:08:46 web.1 | return fn(*args, **kwargs)
olki_1 | 07:08:46 web.1 | File "/app/olki_back/olki/apps/core/graphql/limit_complexity.py", line 97, in resolve
olki_1 | 07:08:46 web.1 | info.context.resolve_cost_counter.increment()
olki_1 | 07:08:46 web.1 | File "/app/olki_back/olki/apps/core/graphql/limit_complexity.py", line 75, in increment
olki_1 | 07:08:46 web.1 | raise Exception('Query is too complex (cost).')
olki_1 | 07:08:46 web.1 | Exception: Query is too complex (cost).
olki_1 | 07:08:46 web.1 | [2020-07-02 07:08:46,981] [ ERROR] --- Traceback (most recent call last):
olki_1 | 07:08:46 web.1 | File "/app/.venv/lib/python3.8/site-packages/graphql/execution/executor.py", line 450, in resolve_or_error
olki_1 | 07:08:46 web.1 | return executor.execute(resolve_fn, source, info, **args)
olki_1 | 07:08:46 web.1 | File "/app/.venv/lib/python3.8/site-packages/graphql/execution/executors/sync.py", line 16, in execute
olki_1 | 07:08:46 web.1 | return fn(*args, **kwargs)
olki_1 | 07:08:46 web.1 | File "/app/olki_back/olki/apps/core/graphql/limit_complexity.py", line 97, in resolve
olki_1 | 07:08:46 web.1 | info.context.resolve_cost_counter.increment()
olki_1 | 07:08:46 web.1 | File "/app/olki_back/olki/apps/core/graphql/limit_complexity.py", line 75, in increment
olki_1 | 07:08:46 web.1 | raise Exception('Query is too complex (cost).')
olki_1 | 07:08:46 web.1 | graphql.error.located_error.GraphQLLocatedError: Query is too complex (cost).
olki_1 | 07:08:46 web.1 | (graphql.execution.utils:155)
olki_1 | 07:08:46 web.1 | [2020-07-02 07:08:46,982] [ ERROR] --- An error occurred while resolving field CorpusEdge.node (graphql.execution.executor:452)