-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Synonym lookup super slow? How to fix? #2367
Comments
yes, this started happening after we started using the SRI Node Normalizer's I definitely think it's the 'match graph' that's causing the issue (I think the acetaminophen graph has 10s of thousands of edges now) - I wonder if we could just not display the graph if it has more than some reasonable number of edges? not sure if there's an existing way to determine the number of edges without actually having to load all of them.. |
As a quick test in
|
oof, thanks. Yeah, I think we should put some effort into slimming down the response first somehow. And then maybe something on the front end. |
ok, per discussion with @edeutsch and others today - I've added an optional
and which produces a truncated cluster like this one (I haven't shown the full
so we were thinking the UI can decide how many nodes is reasonable to display in one cluster (e.g., 200?), and then call note that the top-level "categories" slot shown above that reports node counts by category includes counts for the full cluster, and I also added a top-level "total_synonyms" slot to make it easy to report how many nodes are in the full cluster. let me know if I can do anything else! |
back end now supports max_synonyms=N in a POSTed dict. |
The parameter has been added to the Settings pane of the UI (in devLM), and a warning is given when the output is truncated: |
Fixed in Although I now belatedly wonder if that was really the right way to fix it. |
I've noticed this for a while, but only posting now. Has anyone noticed that the Synonym lookup through the ARAX GUI is super slow? Try searching for metformin or ibuprofen or anything reasonably common, and I start hearing my CPU fans groaning and it takes 15+ seconds for something to appear. I assume this is either because so much data is returned or rendering the graph is so expensive or? I wonder if anyone else has this issue? And if anyone has ideas on how best to solve it? Return less data? Don't render the graph unless asked? This service was great when answers came back within a second, but now it's painful to use.
ideas?
The text was updated successfully, but these errors were encountered: