join_cache:使用Rails缓存加快ActiveRecord关联

时间:2021-05-17 20:03:22
【文件属性】:
文件名称:join_cache:使用Rails缓存加快ActiveRecord关联
文件大小:40KB
文件格式:ZIP
更新时间:2021-05-17 20:03:22
Ruby join_cache 使用Rails缓存可以更快地进行ActiveRecord关联。 什么? 假设您搭建了Rails应用并最终得到了以下结果: class Employee < ActiveRecord xss=removed> Team Load SELECT "teams" . * FROM "teams" INNER JOIN "employees_teams" ON "teams" . " id " = " employees_teams "." team_id " WHERE " employees_teams "." employee_id " = ? [[" employee_id " , 1 ] ] gem join_cac
【文件预览】:
join_cache-master
----LICENSE.txt(1KB)
----VERSION(5B)
----.document(55B)
----lib()
--------join_cache.rb(3KB)
----Gemfile(363B)
----join_cache.gemspec(4KB)
----Rakefile(1KB)
----README.markdown(3KB)
----.travis.yml(201B)
----test()
--------dummy()
----Gemfile.lock(1KB)
----.gitignore(820B)

网友评论