Code Monkey home page Code Monkey logo

Comments (4)

kevinxin90 avatar kevinxin90 commented on June 24, 2024 1

Screen Shot 2021-02-13 at 5 06 35 PM

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.

kevinxin90 avatar kevinxin90 commented on June 24, 2024

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.

kevinxin90 avatar kevinxin90 commented on June 24, 2024

Screen Shot 2021-02-11 at 10 09 21 AM

Based on the log, it seems API query completes in a reasonable amount of time. However, it takes extremely long time to update node with the results (1 mins). Need to investigate why it takes such a long time.

from biothings_explorer.

kevinxin90 avatar kevinxin90 commented on June 24, 2024

Implemented in: ea23686

from biothings_explorer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.