2018-10-01から1ヶ月間の記事一覧
rails5.1から title_changed? ↓ saved_change_to_title? title_was ↓ title_before_last_save に変わった Deprecate the behavior of AR::Dirty inside of after_(create|update|save) callbacks by sgrif · Pull Request #25337 · rails/rails · GitHub 変…
L1のキャッシュサイズ調べてみる cat /sys/devices/system/cpu/cpu0/cache/index0/ coherency_line_size number_of_sets power/ shared_cpu_map type ways_of_associativity level physical_line_partition shared_cpu_list size uevent cat /sys/devices/sy…
eachはSQL的にLIMITをつけずに全件メモリに確保。 find_eachはSQL的にLIMITをつけてデフォルトでは1000件ずつメモリに確保。 mapメソッドはブロックの返り値を集めた新しい配列を作成 ※ちなみにattributes、assign_attributesは多分一緒?
grovese赤川さん、松江開発合宿して楽しかったらしい https://forkwell.connpass.com/event/102045/ 松本 亮介 https://speakerdeck.com/matsumoto_r/nazepotohuoriogabi-yao-nafalseka-enziniatoren-shi-ping-jia-cai-yong-liang-fang-xiang-falseshi-dian-…