Zhongxiao37

花卷花卷花式卷

Home Categories About

ActiveRecord Cache

2021/07/22 rails , activerecord , cache

ActiveRecord Cache

ActiveRecord有两种Cache,一种是relation cache,一般通过reload可以实现DB hit。另外一种是sql cache,这个就需要用一个block去避免。

Post.uncached do
  Post.all.to_a
end
  1. https://www.honeybadger.io/blog/rails-activerecord-caching/

Categories

rails (12) kubernetes (12) ml (11) ruby (9) mysql (8) python (7) javascript (7) docker (6) ai (6) airflow (5) mini-program (5) database (4) sso (4) css (4) react (4) terraform (4) bert (4) ssh (3) postgres (3) aliyun (3) few (3) argo (3) golang (2) redis (2) xiaomi (2) vault (2) proxy (2) postgresql (2) nextjs (2) esbuild (2) fe (2) pandas (2) spark (2) k8s (2) jwt (2) oss (2) puma (2) git (2) llm (2) kafka (2) mattermost (2) history (1) security (1) data_warehouse (1) nginx (1) metaprogram (1) data_structure (1) scope (1) sidekiq (1) algorithm (1) aimesh (1) asus (1) jenkins (1) fund (1) webpack (1) mac (1) memcached (1) sysbench (1) github (1) nightwatch (1) network (1) linux (1) gpg (1) frp (1) ftp (1) sqlserver (1) activerecord (1) cache (1) lambda (1) express (1) nodejs (1) saml (1) blog (1) ghost (1) gatsby (1) async (1) go (1) rclone (1) nas (1) machine_learning (1) aigc (1) github_action (1) aws (1) redshift (1) sagemaker (1) chatgpt (1) sql (1) etl (1) greasemonkey (1) woe (1) great_expectations (1) boostrap (1) oauth (1) neo4j (1) email (1) gitops (1) selenium (1) kubeflow (1) salesforce (1) other (1) onnx (1) argocd (1) nlp (1) cv (1) extension (1) chrome (1) vite (1) allure (1) playwright (1) nomad (1) squid (1) nfs (1) dns (1) registry (1) weaviate (1) mcp (1) uv (1) rsbuild (1) wechat (1) cnn (1) sd (1) prefect (1) bruno (1) workflow (1) mp (1) tun (1) superpowers (1) claude-code (1) biome (1) cloudflare (1) dokploy (1)