switch back to update_column to improve performance (#5074) [deploy]
This commit is contained in:
parent
2af033fca9
commit
2d6d611634
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ class PageViewsController < ApplicationMetalController
|
|||
def update
|
||||
if session_current_user_id
|
||||
page_view = PageView.find_or_create_by(article_id: params[:id], user_id: session_current_user_id)
|
||||
page_view.update(time_tracked_in_seconds: page_view.time_tracked_in_seconds + 15)
|
||||
page_view.update_column(:time_tracked_in_seconds, page_view.time_tracked_in_seconds + 15)
|
||||
end
|
||||
|
||||
head :ok
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue