On 07/12/2011, at 10:34 AM, Michael Hunger wrote:

> Without shutting down the server?
Preferably. Shutting down/starting up may take couple of seconds.
With a suite of 1000 tests it adds up to a pretty long wait.


> Only manually deleting the nodes, rels and indexes, 
> but then all your nodes have to be indexed (index-lookup) or connected 
> (travesal) -> to simulate getAllNodes().
> And then you can batch-delete them.
Hmm. Another option. Thanks.


> You would also want to get all indexes and delete them too.
Don't indexes "retire" when a related node/relationship is gone?

> The extension also does some hard-core action if your db contains more than 
> 10k elements. It just removes the disk-files and reinstates a new graphdb :)
This should never happen. Probably couple of hundreds elements max.


> 
> Am 07.12.2011 um 00:29 schrieb Dmytrii Nagirniak:
> 
>> Thanks Michael.
>> 
>> That's definitely the best way to go.
>> 
>> But I wonder if there is a way to do it without plugins.
>> 
>> 
>> On 07/12/2011, at 10:22 AM, Michael Hunger wrote:
>> 
>>> I wrote a plugin for that.
>>> 
>>> See here:
>>> 
>>> You can just download the jar, put it in your plugins folder and add it to 
>>> your config.
>>> https://github.com/jexp/neo4j-clean-remote-db-addon
>>> https://github.com/jexp/neo4j-clean-remote-db-addon/downloads
>>> 
>>> Am 07.12.2011 um 00:11 schrieb Dmytrii Nagirniak:
>>> 
>>>> Hi,
>>>> 
>>>> I wonder what is the easiest and fastest way to clear the database over 
>>>> the REST API.
>>>> 
>>>> The purpose is to use it during testing and this needs to be as fast as 
>>>> possible.
>>>> The data volume is not expected to be large, so maybe simple retrieval of 
>>>> all relationships, nodes and then batch-deleting those would be sufficient.
>>>> 
>>>> But the question is how do I get all nodes (not necessarily interconnected 
>>>> or attached to ref-node) and relationships?
>>>> 
>>>> Cheers,
>>>> Dima
>>>> http://www.ApproachE.com
>>>> 
>>>> 
>>>> 
>>>> 
>>>> _______________________________________________
>>>> Neo4j mailing list
>>>> User@lists.neo4j.org
>>>> https://lists.neo4j.org/mailman/listinfo/user
>>> 
>>> _______________________________________________
>>> Neo4j mailing list
>>> User@lists.neo4j.org
>>> https://lists.neo4j.org/mailman/listinfo/user
>> 
>> _______________________________________________
>> Neo4j mailing list
>> User@lists.neo4j.org
>> https://lists.neo4j.org/mailman/listinfo/user
> 
> _______________________________________________
> Neo4j mailing list
> User@lists.neo4j.org
> https://lists.neo4j.org/mailman/listinfo/user

_______________________________________________
Neo4j mailing list
User@lists.neo4j.org
https://lists.neo4j.org/mailman/listinfo/user

Reply via email to