You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Return a single table containing statistics of the number of nodes and relationships (grouped by table name).
Description
As of v0.8.2, it's quite tedious to display the summary of the number of nodes and relationships, grouped by the table name. It takes the following two queries run sequentially:
It takes a lot of manual typing and remembering the Cypher syntax for label(x) to get the results in two separate statements.
Suggested syntax
It would be great to expose a function that does this in one single command.
CALLget_db_stats() RETURN*;
Or something along those lines, to return a combined table that shows the number of nodes and relationships, grouped by the table name. Neo4j's APOC does this via apoc.meta.stats.
Why is this useful?
After a large data ingestion job, it can be very useful to run a single command to check that the right number of nodes and relationships exist in the database. Many visualization tools do this by default. Examples of G.V() and Neo4j browser below.
G.V()
Neo4j browser
Downstream benefit
If this is implemented, we can pass the results to the Kuzu Explorer UI so that we can display the statistics when the user opens the UI, similar to how other visualization tools do it.
The text was updated successfully, but these errors were encountered:
Why would CALL get_db_stats() RETURN *; be much better than MATCH statements? I think the MATCH statements are simple enough and more expressive to cater customized user needs. If this is for UI tools, e.g., our Explorer, then it should be quite easy to embed the MATCH statements inside these tools to grab needed stats in my understanding.
Why would CALL get_db_stats() RETURN *; be much better than MATCH statements? I think the MATCH statements are simple enough and more expressive to cater customized user needs. If this is for UI tools, e.g., our Explorer, then it should be quite easy to embed the MATCH statements inside these tools to grab needed stats in my understanding.
It's fewer lines to write manually, and all the results are collected into a single table, and it takes one line of Cypher (less to type and less to remember for the user). If all the function does under the hood is calling those two underlying MATCH statements, it's still worth imo, because it reduces the user effort in getting the info they need (this is valuable information that tells them if their data ingestion was done correctly as per expectations).
Feature
Return a single table containing statistics of the number of nodes and relationships (grouped by table name).
Description
As of v0.8.2, it's quite tedious to display the summary of the number of nodes and relationships, grouped by the table name. It takes the following two queries run sequentially:
Query 1
Query 2
It takes a lot of manual typing and remembering the Cypher syntax for
label(x)
to get the results in two separate statements.Suggested syntax
It would be great to expose a function that does this in one single command.
Or something along those lines, to return a combined table that shows the number of nodes and relationships, grouped by the table name. Neo4j's APOC does this via apoc.meta.stats.
Why is this useful?
After a large data ingestion job, it can be very useful to run a single command to check that the right number of nodes and relationships exist in the database. Many visualization tools do this by default. Examples of G.V() and Neo4j browser below.
G.V()
Neo4j browser
Downstream benefit
If this is implemented, we can pass the results to the Kuzu Explorer UI so that we can display the statistics when the user opens the UI, similar to how other visualization tools do it.
The text was updated successfully, but these errors were encountered: