• Vincent Pelletier's avatar
    {ERP5,ZSQL}Catalog: Wrap all documents at once. · 8a278cbd
    Vincent Pelletier authored
    Allows reducing the number of user existence check queries from one per
    document to one per document batch, reducing database (currently, catalog)
    latency effect on indexation time.
    Also, avoid object -> id -> object dance for SQLCatalog instance while at
    it.
    Also, modernise syntax a bit, avoiding intermediate locals mostly.
    8a278cbd
ZSQLCatalog.py 53.1 KB