[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index]
[Date Index]
[Thread Index]
[SQR-USERS Info]
[SQRUG Home Page]
Re: [sqr-users] sqr tuning question
- Subject: Re: [sqr-users] sqr tuning question
- From: "Christopher Wanko" <WankoC@wyeth.com>
- Date: Thu, 05 Dec 2002 11:53:06 -0500
- List-id: This list is for discussion about the SQR database reporting language from Brio Software. <sqr-users.sqrug.org>
>>>
Hello,(Oracle, Unix)I have a select statement that takes around 7 seconds to
complete in SQL*PLUS. In my SQR I use the sql statement and do lots of
processing for each row returned(total of couple thousand rows).
>>>
Your answer is right there.
If you've ever coded a stored procedure, you know that cursor processing is
time-consuming. Executing it on the server still requires examination of row
data to determine a processing path. With SQR, you choose to perform this
cursor processing on the client rather than the server.
So, to speed things up for you, you can write SQL UPDATE or INSERT statements
to perform (some of) the processing for you - IIF you can perform those
operations on a set. My guess is you can't, so there's another technique you
can use. Select all the rows at once and store them in an array or in a file.
Perform your row-by-row processing in SQR as you might any procedural language
(COBOL, C), and then post the results back as a single INSERT or UPDATE, as
needed.
This is the technique that shops with big (million-plus row) data processing
tasks do.
-Chris
_______________________________________________
sqr-users mailing list
sqr-users@sqrug.org
http://www.sqrug.org/mailman/listinfo/sqr-users