Skip to content

Error in complex arbitrary command #153

Closed
@CacaoGatto

Description

@CacaoGatto

I want to test the performance of RedisGraph with memtier benchmark, and my input is:

memtier_benchmark --server 127.0.0.1 --port 6379 -n 1000 -c 1 -t 1 --hide-histogram --command="graph.query GRAPH1 \"MATCH (s:vertex)-[*6]->(t) WHERE id_in_graph(s)=__key__ RETURN count(t)\"" --key-maximum=100000 --distinct-client-seed --command-key-pattern G

and the benchmark raised an error:

error: key placeholder can't combined with other data

So I checked the source code:

            if (current_arg->data.length() != strlen(KEY_PLACEHOLDER)) {
                benchmark_error_log("error: key placeholder can't combined with other data\n");
                return false;
            }

Maybe my quoted command is treated as a whole parameter? And how to enable my command?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions