Hi all,

 

            We have developed new map:action's that insert information
of downloads, views and searches in a table. It appeared to run OK,
until we found out our problem in the other email I sent about spammers
(thousands of access from the same IP). After a more careful look at the
data, and more importantly, comparing the log files to the database, we
are thinking that there are a lot of rows being duplicated a lot of
times. It appears to be some sort of loop: what was supposed to be one
row is inserted 5 times, sometimes at the same second. There's one line
in the log file but various lines in the database.

            

            We noticed that the problem seems to happen more (but not
exclusively) with bitstream downloads than the other pages, but so far
I'm clueless to what's causing it. We have several actions, one for each
kind of access (view, download, browse and search) and one generic
action that insert the row in the database, and is called by the other
ones. The last action is a simple class, the other ones extend
AbstractAction. Also, the database one commits the context, but I don't
know if there's anything else that must be done to ensure it's working
correctly.

 

            Any help will be greatly appreciated.

 

            Thanks,

 

            Rafael Henkin

------------------------------------------------------------------------------
_______________________________________________
DSpace-tech mailing list
DSpace-tech@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dspace-tech

Reply via email to