Commit 1ab5a3f8 authored by Vincent Pelletier's avatar Vincent Pelletier

Add LIMIT statements to queries grabbing messages from table. As the ZMySQLDA...

Add LIMIT statements to queries grabbing messages from table. As the ZMySQLDA connector downloads all results before handing them to Shared.DC.ZRDB.DA which strips extra messages, MySQL just wastes its bandwith sending unused messages, and wasting memory on client side at the same time.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15604 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0b33a57b
......@@ -27,3 +27,4 @@ WHERE
<dtml-if to_date> AND date <= <dtml-sqlvar to_date type="datetime"> </dtml-if>
ORDER BY
priority, date, uid
LIMIT 1000
......@@ -23,3 +23,4 @@ WHERE
<dtml-if to_date> AND date <= <dtml-sqlvar to_date type="datetime"> </dtml-if>
ORDER BY
priority, date, uid
LIMIT 1000
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