Yes b/c runTimboxed ends the query. But the two nulls are not relatd

On Sun, Mar 26, 2017 at 4:29 PM, unrealadmin23 via Neo4j <
[email protected]> wrote:

> But I have only seen the message since using the apoc.cypher.runTimeboxed
> call.
>
>
> On Friday, 24 March 2017 12:49:10 UTC, Michael Hunger wrote:
>>
>> It's unrelated
>>
>> Von meinem iPhone gesendet
>>
>> Am 24.03.2017 um 13:18 schrieb unrealadmin23 via Neo4j <
>> [email protected]>:
>>
>> Sorry, another question:
>>
>> In my solution above I use null for {params}
>>
>> I notice that this give me the following message in the neo4j.log:
>>
>> 2017-03-24 12:15:28.955+0000 WARN  marking KernelTransaction[statementLocks
>> == null] for termination
>>
>> Should I be using something other than null ?
>>
>>
>>
>>
>> On Wednesday, 22 March 2017 12:55:08 UTC, [email protected] wrote:
>>>
>>> Found the answer:
>>>
>>> $ echo "call apoc.cypher.runTimeboxed('match (n:Entity)-[*4]-() where
>>> n.name=\"hello\" return n.name;',null, 10000);" |
>>> ~fred/neo4j/bin/cypher-shell
>>> The transaction has been terminated. Retry your operation in a new
>>> transaction, and you should see a successful result. Explicitly terminated
>>> by the user.
>>>
>>> Bye!
>>>
>>>
>>> On Wednesday, 22 March 2017 12:43:48 UTC, [email protected]
>>> wrote:
>>>>
>>>>
>>>> Thanks for the prompt response.
>>>>
>>>> Further question:
>>>>
>>>> This works from the Web GUI:
>>>>
>>>> call apoc.cypher.runTimeboxed('match (n:Entity)-[*4]-() where 
>>>> n.name="hello"
>>>> return n.name;',null, 10000)
>>>>
>>>> Why doesn't this work:
>>>> echo "call apoc.cypher.runTimeboxed('match (n:Entity)-[*4]-() where
>>>> n.name="hello" return n.name;',null, 10000)" |
>>>> ~fred/neo4j/bin/cypher-shell
>>>>
>>>> Bye!
>>>>
>>>>
>>>> On Wednesday, 22 March 2017 10:35:27 UTC, Benoît Simard wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> There is a procedure to do that in APOC, called
>>>>> `apoc.cypher.runTimeboxed`
>>>>> Check the documentation
>>>>> https://neo4j-contrib.github.io/neo4j-apoc-procedures/#_cyph
>>>>> er_execution
>>>>>
>>>>> Cheers
>>>>>
>>>>> 2017-03-22 11:09 GMT+01:00 unrealadmin23 via Neo4j <
>>>>> [email protected]>:
>>>>> >
>>>>> > It would be good to be able to specify a maximum run time of a query
>>>>> - I
>>>>> > know that you can set this as a global parameter but on a per query
>>>>> basis
>>>>> > would be very useful in some circumstances.
>>>>> >
>>>>> > i.e.
>>>>> >
>>>>> > match ().........  return a timeout=10;
>>>>> >
>>>>> > Wayne
>>>>> >
>>>>> > --
>>>>> > You received this message because you are subscribed to the Google
>>>>> Groups
>>>>> > "Neo4j" group.
>>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>>> send an
>>>>> > email to [email protected].
>>>>> > For more options, visit https://groups.google.com/d/optout.
>>>>>
>>>> --
>> You received this message because you are subscribed to the Google Groups
>> "Neo4j" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>> --
> You received this message because you are subscribed to the Google Groups
> "Neo4j" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to