Discussion:
[Erp5-dev] Inventory API optimisation
Pelletier Vincent
2007-09-06 12:48:52 UTC
Permalink
Hi.

I just commited new optimisatin code for Inventory lookups.
For now, it's not well tested besides unit testing, so you might want to
disable it if you see it failing (please also report your problem on this
list).

You can disable it by deleting the new ZSQLMethod
portal_skins/erp5_core/Resource_zGetFullInventoryDate
It's not used anywhere outside of the new inventory optimisation code, so it's
safe to delete (or to rename if you plan to use it later).

If this file does not exist, optimisation fails and falls back on usual
behaviour, so it's a as-clean-as-possible "killswitch" for optimisation
mechanism.
--
Vincent Pelletier
Pelletier Vincent
2007-09-06 12:51:04 UTC
Permalink
Post by Pelletier Vincent
For now, it's not well tested besides unit testing
Folowing tests reported no errors:

ERP5/tests
testInventory.py
testInventoryAPI.py
testInventoryModule.py

erp5_pdm_ui_test
(the whole test suite)
--
Vincent Pelletier
Loading...