Skip to content

ERP5Type: set __isghost__ on temp portal type class

Jérome Perrin requested to merge fix/is_ghost_temp_object into master

Without setting __isghost__ , each call to property manager introspection API on a temporary document (like for example propertyIds) loads the portal type class again, which is expensive from performance point of view as it needs to load property sheets.

A typical case is

  predicate.asContext(
    ...
  ).generatePredicate(criterion_property_list=...)

that we have in asPredicate scripts. With this change they run faster.

Edited by Jérome Perrin

Merge request reports