Slowness when loading content on production

Project:RUcore/NJDH/Partner Portal Search
Version:8.1
Component:Searching - Service Agent
Category:bug report
Priority:critical
Assigned:chadmills
Status:closed
Description

When loading content; whether it is a PDF, image, video, or audio there is a long delay loading or downloading the content. The delay last approx 12+ seconds. This has been narrowed down to the triggering of the stats package to log the view/download. The new stats package is updating a cache table for faster reporting.

Right not the trigger to log the stat is occurring synchronously to the loading of the content. The user then experiences the delay of the stat cache updating. On dev and test this wasn't exposed due to the small size of the stats database. The production database is much larger and takes more time to log and update the stats cache for the resource.

The solution is a asynchronous triggering of the stats package to log the view/download. I tested this on dev and the stats are reported as expected and the content is loaded in about the same amount of time. The dev stats database is quite small. On test the database is much larger than dev and a increase in content load times of .8-.9 seconds has been seen. This is pretty significant for test.

I suggest patching this as soon as possible since it affects all content viewing on production. This should also be tested by a separate set of eyes on test to make sure the view/download is recorded as expected.

Comments

#1

This is ready to test on test. The test should be:

1) Visit a resource with a video and/or audio. Open the full resource and click on the statistics option. Note the number of downloads. Reload/refresh the page and view the video and/or audio. The number should increase.
2) Visit a resource that uses PTIF as a presentation option. Open the full resource and click on the statistics option. Note the number of downloads. Reload/refresh the page and view the PTIF. The number should increase. Make sure you do not view the PTIF before first viewing the statistics. Viewing a PTIF more than once during a single session only counts as one download statistic.
3) Find a package resource. Open the full resource and click on the statistics option. Note the number of downloads. Download the package. Refresh the page and view the number of download. The numbers should increase.

#2

Status:active» fixed

Tested and works as should.

#3

Status:fixed» closed

Added to staging and production. Tested and works as expected.

Back to top