ThreadController.index method increases the view count of the thread. While it does set
skip_mod_date, it still makes the thread object "dirty" (in the ming odm session), and thus ManagedSessionExtension/ArtifactSessionExtension thinks it is a change needing to be saved into solr, so and
add_artifacts task runs. That is a lot of unnecessary work generated from a pageview. We shouldn't run the
add_artifacts task (if not easy to avoid it, perhaps easier to run a mongo
$inc command and avoid the session). And possibly consider not tracking view counts at all.
Log in to post a comment.