[Cubicweb] Entity deletion is slow
Adrien Di Mascio
adrien.dimascio at logilab.fr
Tue Sep 9 15:37:03 CEST 2014
Le 09/09/2014 15:25, Aurélien Campéas a écrit :
> On 09/09/2014 15:03, Adrien Di Mascio wrote:
>> Le 09/09/2014 09:53, Aurélien Campéas a écrit :
>>> On 09/09/2014 09:38, Julien Cristau wrote:
>>>> On Fri, Aug 29, 2014 at 10:37:31 +0200, Yann Cointepas wrote:
>>> I know some people at logilab have "fast-delete-entity" script, which
>>> would be a good starting point.
> For instance, one should:
> * work at the eid level (this function wipes whole etypes)
> * handle composite relation cascading delete
Actually, this already exists (in some customer code, but it could be
released I guess) :
_fast_delete_eids(session, etype, eids)
_fast_delete_relation_eids(session, rtype, eids, subjobj='subject')
But it doesn't handle the composite case you mentioned, nor the standard
> Imho we should eventually have such an utility, e.g. in dataio ?
Could be dataio, yes.
Adrien Di Mascio - LOGILAB, Paris (France).
Formations - http://www.logilab.fr/formations
Développements - http://www.logilab.fr/services
Gestion de connaissances - http://www.cubicweb.org/
More information about the Cubicweb