You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The idea is the following: we want to reduce the data loaded from DB by not loading log_data column by default (using ignored_columns feature), and only load log_data when explicitly specified (e.g. via with_log_data scope).
The proposed API:
classUser < ActiveRecord::Basehas_logidzeignore_log_data: trueendUser.all#=> SELECT id, name FROM usersUser.with_log_data#=> SELECT id, name, log_data FROM users
(optional, maybe, another PR) Add an easier way to access log_data on a single record, e.g.:
user=User.find(params[:id])user.log_data#=> raises (or nil?) since column is ignoreduser.log_data!#=> loads log_data from DB
The text was updated successfully, but these errors were encountered:
From: #89 (comment)
The idea is the following: we want to reduce the data loaded from DB by not loading
log_data
column by default (usingignored_columns
feature), and only loadlog_data
when explicitly specified (e.g. viawith_log_data
scope).The proposed API:
(optional, maybe, another PR) Add an easier way to access
log_data
on a single record, e.g.:The text was updated successfully, but these errors were encountered: