Displaying 2 results from an estimated 2 matches for "total_cach".
Did you mean:
total_cache
2006 Mar 13
1
adding custom cache field
...So, let there be a transactions table with the field ''amount'' for which we want
to keep track of the total. Then in the accounts table, we will need the
field, ''transactions_total''.
And while declaring the models just add the line,
belongs_to_extra :accounts, :total_cache => :amount
This code below is tested with edge rail, and will work for polymorphic
associations also.
Any comments are welcome.
module ActiveRecord
module Associations # :nodoc:
def self.append_features(base)
super
base.extend(ClassMethods)
end
module ClassMethods...
2018 Dec 19
0
Cgroups : memory.limit_in_bytes and memory.usage_in_bytes includes file cache?
...880266752
rss 2441216
rss_huge 0
mapped_file 8192
swap 0
pgpgin 29265847812
pgpgout 29244880354
pgfault 48530374728
pgmajfault 20
inactive_anon 0
active_anon 2441216
inactive_file 85879496704
active_file 770048
unevictable 0
hierarchical_memory_limit 85899345920
hierarchical_memsw_limit 85899345920
total_cache 85880266752
total_rss 2441216
total_rss_huge 0
total_mapped_file 8192
total_swap 0
total_pgpgin 29265847812
total_pgpgout 29244880354
total_pgfault 48530374728
total_pgmajfault 20
total_inactive_anon 0
total_active_anon 2441216
total_inactive_file 85879496704
total_active_file 770048
total_unevict...