Comments (4)
Previously, for each association, we update the knowledge graph (inputNode, outputNode, edge) using javascript spread operation. This is very inefficient. Now, it will first check if node/edge exists in knowledge graph, and then directly using dict assignment operation, which significantly reduce the time for this process.
Also, for nodeUpdate (which updates qNode with equivalent identifiers), we also apply the same logics and significantly cuts down the query time.
Now this query is able to completes within 20 seconds.
from biothings_explorer.
The issue is caused by nginx settings on the server.
Based on this post.
We can update the nginx settings on the server located at /etc/nginx/nginx.conf
Add the following lines in the http section (note this set the timeout to be 5mins, can increase if needed.):
http {
fastcgi_read_timeout 300;
proxy_read_timeout 300;
}
Then reload nginx config
sudo service nginx reload
from biothings_explorer.
from biothings_explorer.
Implemented in: ea23686
from biothings_explorer.
Related Issues (20)
- Pathfinder Prototype HOT 43
- implement edge attribute constraints HOT 6
- Bug: TypeError when there's no results for an Explain-style query HOT 1
- overview and management of TRAPI 1.5 features (excluding set_interpretation/MCQ) HOT 4
- TRAPI 1.5: new query property `bypass_cache` HOT 3
- TRAPI 1.5: set_interpretation/MCQ HOT 1
- TRAPI 1.5: add `"attributes": []` to NodeBindings, EdgeBindings, AuxGraphs HOT 2
- TRAPI 1.5: update SmartAPI yamls for BTE + Service Provider HOT 10
- TRAPI 1.5: support source_record_urls HOT 10
- error in subclass node expansion HOT 3
- Handling local instance "port in use" HOT 1
- Changing Creative mode threshold from results to time HOT 10
- Remove temporary config changes (rolling deployment chore) HOT 2
- TRAPI validation error in meta_knowledge_graph in Dev and CI for TRAPI 1.5 HOT 2
- add `max research phase` to `treatsChembl` edges from mychem.info HOT 6
- KP is returning a curie that wasn't asked for without a query id HOT 10
- BTE is failing TRAPI 1.5 validation in CI HOT 4
- TRAPI 1.5: update registrations for TRAPI KPs used HOT 6
- add frequency qualifier for disease-phenotype associations to biolink API annotation
- `/meta_knowledge_graph` MetaEdge `knowledge_types` cannot be `lookup_and_score`? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from biothings_explorer.