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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Laurent S
erp5
Commits
afc14e0f
Commit
afc14e0f
authored
Apr 12, 2013
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
implicit predecessor: rewrite this slow subquery in a join
parent
c52bfb1b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_zGetImplicitPredecessorValueList.xml
..._skins/erp5_dms/Base_zGetImplicitPredecessorValueList.xml
+4
-3
bt5/erp5_dms/bt/revision
bt5/erp5_dms/bt/revision
+1
-1
No files found.
bt5/erp5_dms/SkinTemplateItem/portal_skins/erp5_dms/Base_zGetImplicitPredecessorValueList.xml
View file @
afc14e0f
...
...
@@ -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
...
...
@@ -92,7 +92,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
...
...
@@ -101,6 +101,7 @@ LIMIT 1000\n
\n
</dtml-let>
\n
</dtml-let>
\n
\n
]]>
</string>
</value>
...
...
bt5/erp5_dms/bt/revision
View file @
afc14e0f
1272
\ No newline at end of file
1273
\ No newline at end of file
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