• Vincent Pelletier's avatar
    Performance improvements: · f0cb3704
    Vincent Pelletier authored
    - DO NOT use getObject to then just get an UID. It is ready to use in SQL result. This saves a roundtrip to ZODB (which can be in a remote ZEO server).
    - DO NOT use getXXXUid() to then feed the uid to catalog to get the real object. Uid _has_ been fetched from the actual object in the accessor anyway. So just grab actual objects, and fetch uids from them when needed. This saves a roundtrip (...per iteration !) to catalog.
    - Use "IN" instead of "OR" with equality in SQL query (minor improvement compared to the 2 above)
    
    git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@22567 20353a03-c40f-0410-a6d1-a30d3c3de9de
    f0cb3704
revision 3 Bytes