This PR fixes a performance issue when saving entities. This was introduced with Entity.related_observables_count computed field which is called each time an entity is saved. This means at each save call, neighbors method was also called. This mainly impacts feeds or tasks creating / updating lots of entities.
Fixing this issue relies on excluding related_observables_count when calling model_json_dump in ArangoDatabase.save method.
This PR fixes a performance issue when saving entities. This was introduced with
Entity.related_observables_count
computed field which is called each time an entity is saved. This means at eachsave
call,neighbors
method was also called. This mainly impacts feeds or tasks creating / updating lots of entities.Fixing this issue relies on excluding
related_observables_count
when callingmodel_json_dump
inArangoDatabase.save
method.