ranking-agent / aragorn-ranker

Exposes TRAPI functions to add literature co-occurrence edges, convert publications to edge weights, and provide scores for answers.
MIT License
0 stars 1 forks source link

OmniCorp posgres database performance issue #60

Closed PhillipsOwen closed 1 year ago

PhillipsOwen commented 2 years ago

The OmniCorp postgres DB stops servicing pubmed id count requests for large workloads.

ranker creates a job/curie to gather the pubmed id counts. in situations where there are a large number of curies to lookup (>1-2k?) the DB may go unresponsive. presumably this is occurring because the DB is overwhelmed with the nearly instantaneous flood of SELECT COUNT(pubmed_id) requests.

a number of things were attempted to alleviate/isolate the issue. most of these enhanced performance but did not correct the Issue:

DB settings should be inspected to see if there is a way to optimize for this scenario. in the interim it may be advantageous to somehow throttle the flood of select statements.