ldbc / ldbc_snb_interactive_v1_impls

Reference implementations for LDBC Social Network Benchmark's Interactive workload.
https://ldbcouncil.org/benchmarks/snb-interactive
Apache License 2.0
98 stars 85 forks source link

Custom queries #385

Closed TchaloSon closed 1 year ago

TchaloSon commented 1 year ago

Hello! I would like to inquire whether it is possible to inject custom queries into the ldbc framework. If so ,can you mention any steps toward that?

GLaDAP commented 1 year ago

Hi! What kind of custom queries do you want to inject?

Adding a custom query is possible, but it requires changes to the driver and the implementations query and result handler, which are unfortunately not trivial to change. If your query input parameters and result matches one of the already existing queries, I would recommend substituting one of the existing queries instead of adding a new one.

TchaloSon commented 1 year ago

We want to add a query that run Weakly Connected Components (no params) or a query that run one of our algorithms that take as input one vertex

GLaDAP commented 1 year ago

For Weakly Connected Components I would recommend taking a look at the LDBC Graphalytics workload. But if you want to use the SNB Interactive framework, maybe you could try changing the query template of Query13/14 and just ignore one or both input parameters. Changing the framework itself to add these queries is not recommended because of the amount of deep changes it would require (also in the driver)