Skip to content
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

Loading relations is slow due to serial Concept API calls #164

Open
alexjpwalker opened this issue Jul 28, 2021 · 0 comments
Open

Loading relations is slow due to serial Concept API calls #164

alexjpwalker opened this issue Jul 28, 2021 · 0 comments

Comments

@alexjpwalker
Copy link
Member

Problem to Solve

When you have a database with a moderate amount of data (say, 3000 relations) , the query match $x sub relation; takes 11 seconds to execute on localhost, and significantly longer in a database hosted on a remote server.

This is because each relation concept loaded triggers a serial Concept API call to getPlayersByRoleType. With 20ms network latency, this query would take over a minute - to load just 3000 relations.

NOTE: This issue also affects schema queries, which do serial Concept API calls to getSupertype for each Type loaded.

Proposed Solution

This issue could be solved by introducing an Async Concept API, or by not loading the connected concepts, or by an alternative solution such as adding options to load connected vertices with the query (discussed in the Async Concept API feature proposal)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant