<br><font size=2 face="sans-serif">Florin,</font>
<br>
<br><font size=2 face="sans-serif">I have experienced this issue and it
is indeed vexatious. &nbsp;You can set the timestamp with the test version
of SWN_SELSEN. &nbsp;There are also a couple of OSS notes that inadequately
address the runtime of the program. &nbsp;The site at which I implemented
extended notifications also had millions of entries in the log history
file, and from memory this file is accessed when running the program with
the FULL filter, but not the DELTA filter. &nbsp;So the initial run took
over 8 hours, or usually just timed-out. &nbsp;So it seemed to me that
setting the timestamp had no impact in reducing runtime because the program
run with FULL filter still read through that ghastly log history file.
&nbsp;Archiving data would solve the problem but if the site is not already
using archiving then it is unlikely that it will be implemented together
with extended notifications. &nbsp;The only way i was able to make the
funcitonality workable was to dispense with the FULL filter alltogether
and only use the DELTA filter.</font>
<br>
<br><font size=2 face="sans-serif">Karl Nietz<br>
 </font>
<br>
<br>
<br>
<table width=100%>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">From:</font>
<td><font size=1 face="sans-serif">Rick Bakker &lt;rbakker@gmail.com&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">To:</font>
<td><font size=1 face="sans-serif">&quot;SAP Workflow Users' Group&quot;
&lt;sap-wug@mit.edu&gt;</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Date:</font>
<td><font size=1 face="sans-serif">21/01/2010 08:09 AM</font>
<tr valign=top>
<td><font size=1 color=#5f5f5f face="sans-serif">Subject:</font>
<td><font size=1 face="sans-serif">Re: Extendend Notifications: Performance
on SWWLOGHIST</font></table>
<br>
<hr noshade>
<br>
<br>
<br><tt><font size=2>Hello,<br>
<br>
The lengthy first-time run of SWN_SELSEN is a one-off so I usually<br>
just let it go.<br>
<br>
I'm pretty sure the timestamp is stored in table SWN_TIMESTAMPS. You<br>
could always change this manually if you really want to, though of<br>
course it's not recommended.<br>
<br>
Note that the timestamps are stored like this:<br>
20,100,109,030,010.8190000<br>
=<br>
2010.01.09.03:00:10 GMT/UTC<br>
= translate to your own timezone<br>
<br>
It certainly would be nice if SAP changed this so that the database<br>
query would be more selective on the (usually) small number of tasks<br>
that it's looking for.<br>
<br>
regards<br>
Rick Bakker<br>
Hanabi Technology<br>
<br>
<br>
<br>
On Wed, Jan 20, 2010 at 6:19 AM, Florin Wach &lt;florin.wach@gmx.net&gt;
wrote:<br>
&gt; follow-up: I have checked SAP-Note 1105696 which seemed to be promising
to solve the issue, however, that particular object method is not included
... and the note changes the statements from an even worse one to the one,
which is already used where I have the problems with.<br>
&gt;<br>
&gt;<br>
&gt; -------- Original-Nachricht --------<br>
&gt;&gt; Datum: Wed, 20 Jan 2010 17:11:30 +0100<br>
&gt;&gt; Von: &quot;Florin Wach&quot; &lt;florin.wach@gmx.net&gt;<br>
&gt;&gt; An: sap-wug@mit.edu<br>
&gt;&gt; Betreff: Extendend Notifications: Performance on SWWLOGHIST<br>
&gt;<br>
&gt;&gt; Hi dear wuggers,<br>
&gt;&gt;<br>
&gt;&gt; I'm currently running the intial (first) run of SWN_SELSEN in
the<br>
&gt;&gt; production system. There's a filter active, restricting the notifications
down to a<br>
&gt;&gt; handful of tasks-ID's. There are relatively few users using the<br>
&gt;&gt; notifications (as receivers).<br>
&gt;&gt;<br>
&gt;&gt; The run takes now 3 hours, where I can trace it down to a large
and<br>
&gt;&gt; time-consuming number of sequential reads on table SWWLOGHIST,
which I could<br>
&gt;&gt; track down to ABAP class CL_SWF_RUN_GET_WI_DLT_REQUEST.<br>
&gt;&gt;<br>
&gt;&gt; Probably it's the method GET_DELTA_ENTRIES that ... when you run
it for<br>
&gt;&gt; the very first time, obviously gets a huge number of work items...
so to say.<br>
&gt;&gt;<br>
&gt;&gt; Here is a statements that is sticking out:<br>
&gt;&gt;<br>
&gt;&gt; SELECT hist~wi_id hist~method hist~timestamp<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FROM swwloghist
AS hist<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;INNER JOIN swwwihead
AS head ON hist~client = head~client<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AND hist~wi_id
= head~wi_id<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;INTO CORRESPONDING
FIELDS OF TABLE lt_swwloghist<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;FOR ALL ENTRIES
IN lr_method<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WHERE hist~timestamp
GE me-&gt;im_timestamp<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AND &nbsp; hist~method
EQ lr_method-low<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AND &nbsp; head~wi_type
EQ swfco_wi_normal<br>
&gt;&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AND &nbsp; head~wi_rh_task
IN lr_task.<br>
&gt;&gt;<br>
&gt;&gt; There's a secondary database index existing on SWWLOGHIST~002
for<br>
&gt;&gt; [ CLIENT , TIMESTAMP , METHOD ]<br>
&gt;&gt;<br>
&gt;&gt; The join seems to be okay, since they match on the primary key
of WI_ID.<br>
&gt;&gt; Mayhaps the wi_id needs to be included in the database index,
making it the<br>
&gt;&gt; database easier to access the joined table w/o reading the record
set, yet<br>
&gt;&gt; at that stage.<br>
&gt;&gt; Furthermore, the swwwihead-table needs to be read fully for each
entry<br>
&gt;&gt; found at the swwloghist table.<br>
&gt;&gt; Hmm... Since the statement FOR ALL ENTRIES was used, a combined
where<br>
&gt;&gt; clause is generated, grouping about 5 to 10 select-clauses into
one statement.<br>
&gt;&gt; To the number of SELECT's is the number work items in the system
(since<br>
&gt;&gt; they're all within the requested me-&gt;im_timestamp (which is
zeroe at that<br>
&gt;&gt; time)).<br>
&gt;&gt;<br>
&gt;&gt; ** Well, did anybody else came across that performance issue?<br>
&gt;&gt; ** Maybe someone knows the trick to manually set a timestamp,
so I can<br>
&gt;&gt; reduce the number of selects for the initial load?<br>
&gt;&gt;<br>
&gt;&gt; We have 3,559,095 work items currently in the system.<br>
&gt;&gt;<br>
&gt;&gt; Any ideas, even the most absurd one, are highly appreciated!<br>
&gt;&gt;<br>
&gt;&gt; With the very best wishes,<br>
&gt;&gt; Florin<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; SAP-WUG mailing list<br>
&gt;&gt; SAP-WUG@mit.edu<br>
&gt;&gt; </font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug"><tt><font size=2>http://mailman.mit.edu/mailman/listinfo/sap-wug</font></tt></a><tt><font size=2><br>
&gt; _______________________________________________<br>
&gt; SAP-WUG mailing list<br>
&gt; SAP-WUG@mit.edu<br>
&gt; </font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug"><tt><font size=2>http://mailman.mit.edu/mailman/listinfo/sap-wug</font></tt></a><tt><font size=2><br>
&gt;<br>
<br>
_______________________________________________<br>
SAP-WUG mailing list<br>
SAP-WUG@mit.edu<br>
</font></tt><a href="http://mailman.mit.edu/mailman/listinfo/sap-wug"><tt><font size=2>http://mailman.mit.edu/mailman/listinfo/sap-wug</font></tt></a><tt><font size=2><br>
</font></tt>
<br>
<br>