Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kasra Jamshidi
erp5
Commits
3f6f07d1
Commit
3f6f07d1
authored
Mar 03, 2014
by
Mame Coumba Sall
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Optimize methods by rewriting subqueries
parent
671a83f6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_zGetImplicitPredecessorValueList.xml
..._skins/erp5_dms/Base_zGetImplicitPredecessorValueList.xml
+1
-1
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_zGetImplicitSuccessorValueList.xml
...al_skins/erp5_dms/Base_zGetImplicitSuccessorValueList.xml
+3
-3
No files found.
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_zGetImplicitPredecessorValueList.xml
View file @
3f6f07d1
...
...
@@ -86,7 +86,7 @@ FROM\n
AND
<dtml-var
"query[\'where_expression\']"
>
\n
</dtml-if>
\n
AND\n
MATCH(SearchableText) AGAINST(
<dtml-
sqlvar
reference
type=
string
>
)\n
MATCH(SearchableText) AGAINST(
<dtml-
let
reference=
"\'%s\' % reference"
><dtml-sqlvar
reference
type=
string
></dtml-let>
IN BOOLEAN MODE
)\n
AND\n
<dtml-sqltest
reference
op=
ne
type=
string
>
\n
ORDER BY reference, language_order DESC, version DESC, revision DESC\n
...
...
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_zGetImplicitSuccessorValueList.xml
View file @
3f6f07d1
...
...
@@ -64,8 +64,8 @@ SELECT path, uid\n
FROM\n
(\n
SELECT DISTINCT\n
path,\n
(select uid from catalog where catalog.path=sub.path) as
uid\n
sub.
path,\n
uid\n
FROM\n
( SELECT\n
@current_path:=IF(@current_reference = reference, @current_path, path) AS path,\n
...
...
@@ -93,7 +93,7 @@ FROM\n
ORDER BY reference, language_order DESC, version DESC, revision DESC\n
) AS innersub\n
)\n
AS sub\n
AS sub
inner join catalog on catalog.path = sub.path
\n
)\n
AS main\n
WHERE\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment