Commit 09e4cdf3 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

trade: make child_resource_uid related key faster.

parent 2043baea
<dtml-var table_0>.uid = <dtml-var table_1>.uid <dtml-var table_0>.uid = <dtml-var table_1>.uid
<dtml-var RELATED_QUERY_SEPARATOR> <dtml-var RELATED_QUERY_SEPARATOR>
<dtml-var table_2>.uid = <dtml-var table_1>.category_uid
<dtml-var RELATED_QUERY_SEPARATOR>
<dtml-var table_1>.base_category_uid = <dtml-var "portal_categories.resource.getUid()"> <dtml-var table_1>.base_category_uid = <dtml-var "portal_categories.resource.getUid()">
AND <dtml-var table_0>.uid = <dtml-var table_1>.uid AND <dtml-var table_0>.uid = <dtml-var table_1>.uid
AND <dtml-var table_0>.parent_uid = <dtml-var query_table>.uid AND <dtml-var table_0>.parent_uid = <dtml-var query_table>.uid
\ No newline at end of file
...@@ -10,7 +10,6 @@ ...@@ -10,7 +10,6 @@
<key> <string>arguments_src</string> </key> <key> <string>arguments_src</string> </key>
<value> <string>table_0\r\n <value> <string>table_0\r\n
table_1\r\n table_1\r\n
table_2\r\n
RELATED_QUERY_SEPARATOR=" AND "\r\n RELATED_QUERY_SEPARATOR=" AND "\r\n
query_table="catalog"</string> </value> query_table="catalog"</string> </value>
</item> </item>
......
<key_list> <key_list>
<key>child_resource_uid | catalog,category,catalog/uid/z_related_child_resource</key> <key>child_resource_uid | catalog,category/category_uid/z_related_child_resource</key>
</key_list> </key_list>
\ No newline at end of file
child_resource_uid | catalog,category,catalog/uid/z_related_child_resource child_resource_uid | catalog,category/category_uid/z_related_child_resource
\ 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