Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • erp5 erp5
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Merge requests 142
    • Merge requests 142
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Jobs
  • Commits
Collapse sidebar
  • nexedinexedi
  • erp5erp5
  • Merge requests
  • !2073

ERP5Type: set __isghost__ on temp portal type class

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Jérome Perrin requested to merge fix/is_ghost_temp_object into master Mar 17, 2025
  • Overview 1
  • Commits 1
  • Pipelines 2
  • Changes 4

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 Mar 18, 2025 by Jérome Perrin
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: fix/is_ghost_temp_object
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7