Statsupdate method taking a while

Project:RUcore Statistics
Version:8.1
Component:Code
Category:bug report
Priority:normal
Assigned:chadmills
Status:closed
Description

When recording a stat the method takes upwards of 17 seconds to respond. Sample URL being submitted is {key} was replaced on purpose:

https://rucore-test.libraries.rutgers.edu/api/stats/update_download/?key={key}&mine_type=image/jpeg&data_stream=readbook&object=rutgers-lib:201602&host_name=mills-scc.rul.rutgers.edu&host_ip=172.18.162.207&system=root&isinblacklist=0

Comments

#1

Assigned to:jgeng» chadmills

Back to you, hopefully you can get around with this. Thx

#2

Status:active» test

Fixed by making a async call when accessing the bookreader. This was the only time I could find where a stat entry took a while and it was isolated to a very complex and historically odd item; but nonetheless this is a better solution.

Test by viewing an item that uses the bookreader and make note of the number of "Read Online" entries in the stats. Open the item using the book reader and check that stats again. The book read should open quickly and the number of "Read online" should increment by 1.

#4

Status:test» fixed

Tested, marking fixed.

#5

Status:fixed» closed

Back to top