Commit f2b4154b authored by Vincent Pelletier's avatar Vincent Pelletier

Add python filters on Inventory indexing. This saves time when indexing...

Add python filters on Inventory indexing. This saves time when indexing non-inventory (or non-inventory-movement) objects by not calling ZSQLMethods which will not index anything (and worse, which will issue DELETE queries which will lock rows and might ultimtely caue deadlocks).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@16442 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 02917f79
...@@ -2,4 +2,12 @@ ...@@ -2,4 +2,12 @@
<item key="sql_uncatalog_object" type="int"> <item key="sql_uncatalog_object" type="int">
<value>1</value> <value>1</value>
</item> </item>
<item key="_is_filtered_archive" type="int">
<value>1</value>
</item>
<item key="_filter_expression_archive" type="str">
<value>python: isInventory</value>
</item>
<item key="_filter_type_archive" type="tuple">
</item>
</catalog_method> </catalog_method>
\ No newline at end of file
...@@ -2,4 +2,12 @@ ...@@ -2,4 +2,12 @@
<item key="sql_uncatalog_object" type="int"> <item key="sql_uncatalog_object" type="int">
<value>1</value> <value>1</value>
</item> </item>
<item key="_is_filtered_archive" type="int">
<value>1</value>
</item>
<item key="_filter_expression_archive" type="str">
<value>python: isInventoryMovement</value>
</item>
<item key="_filter_type_archive" type="tuple">
</item>
</catalog_method> </catalog_method>
\ No newline at end of file
80 81
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment