I save strings to a value archives to store events.
Value changes, Commands, Attribute changes like alert limit changes; all are written to a special DPEs (.msg) which every DP have and they got an archive config.
I have about 29.000 elements in the value archive configured for 1580 entries (giving the maximum file size of 2GB).
Of course this are big archives and the query may take long time; but if I query the same information by SystemManagment/Reports/SQL-Query the result arrives much faster.
The SQL query string "SELECT ALL '_online.,._value' FROM '*.*.*.msg' TIMERANGE("2013.10.15 12:00:00","2013.10.15 13:00:00",1,0)
It returns 26104 lines within query time 5.044 seconds, total time 6.251 seconds
The same query in AES screen returns Too much data error.

If I query the same but only a timerange of 5 minutes SQL returns 14866 lines within query time 4.884 seconds, total time 5.579 seconds
The same query in AES screen take nearly one minute.

The customer like to query a whole day or even wider timeranges.
Why is SQL query so much faster and how I can speed up AES screen to reach answer times like SQL query?
How can I speed up thing generally (quering a whole day by SQL-Query also give a to much data error)?
All these string are written in one value archive. It should not be necessary to query all archives.
Can I specify to query only this special value archive, not all?
Thank You.